[CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Ken Irwin
Hi all,

Does anyone know if there's a way to specify/alter the equivalent of 
email-headers on SMS messages sent from an email address?

We send SMS messages to users through the library website, but the messages 
come from a bogus email address. We'd like it to come from a real email address 
so they can text us back if necessary. I tried changing the "From:" headers on 
the email, but that didn't work. Is there an SMS equivalent of an email header 
that we can modify?

A little bit of searching around makes me think that UDH (User Data Headers) 
might be involved, but I can't make heads or tails of what I'm seeing when I 
look that up.

Alternately: does anyone have a handy PHP/SMS library that handles all of this 
behind the scenes and requires me not to know much?

Thanks! Looking forward to seeing some of you in South Bend this weekend =)
Ken


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Thomas Bennett
I don't know if this will be any help but you would need to replace the reply-
to header I expect.

Thomas


On Wednesday 09 June 2010 08:49:11 you wrote:
> Hi all,
> 
> Does anyone know if there's a way to specify/alter the equivalent of
>  email-headers on SMS messages sent from an email address?
> 
> We send SMS messages to users through the library website, but the messages
>  come from a bogus email address. We'd like it to come from a real email
>  address so they can text us back if necessary. I tried changing the
>  "From:" headers on the email, but that didn't work. Is there an SMS
>  equivalent of an email header that we can modify?
> 
> A little bit of searching around makes me think that UDH (User Data
>  Headers) might be involved, but I can't make heads or tails of what I'm
>  seeing when I look that up.
> 
> Alternately: does anyone have a handy PHP/SMS library that handles all of
>  this behind the scenes and requires me not to know much?
> 
> Thanks! Looking forward to seeing some of you in South Bend this weekend =)
> Ken
> 

-- 
==
Thomas McMillan Grant Bennett   Appalachian State University
Operations & Systems AnalystP O Box 32026
University LibraryBoone, North Carolina 28608
(828) 262 6587

Library Systems Help Desk: https://www.library.appstate.edu/help/
==


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Francis Kayiwa

On 6/9/10 7:49 AM, Ken Irwin wrote:

Hi all,

Does anyone know if there's a way to specify/alter the equivalent of 
email-headers on SMS messages sent from an email address?

We send SMS messages to users through the library website, but the messages come from a 
bogus email address. We'd like it to come from a real email address so they can text us 
back if necessary. I tried changing the "From:" headers on the email, but that 
didn't work. Is there an SMS equivalent of an email header that we can modify?

A little bit of searching around makes me think that UDH (User Data Headers) 
might be involved, but I can't make heads or tails of what I'm seeing when I 
look that up.

Alternately: does anyone have a handy PHP/SMS library that handles all of this 
behind the scenes and requires me not to know much?

Thanks! Looking forward to seeing some of you in South Bend this weekend =)
Ken



When I get SMS messages that originate from e-mail they usually come 
from my TelCo's SMS gateway so I will hazard that it may not matter what 
you do with your From headers... or certainly I feel you will have to 
deal with the various TelCo companies many different rules etc., to get 
it to work.


See you in South Bend. :-)

./fxk



--
If Machiavelli were a hacker, he'd have worked for the CSSG.
-- Phil Lapsley


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Ken Irwin
We originally tried changing the From and Reply-To mail headers, but the phones 
we tested on didn't honor the email headers. Instead they show an address 
@www6.wittenberg.edu (ie, our web server). That's why I was thinking there 
would be some sort of SMS-equivalent-header that it cared about more.

Ken

-Original Message-
From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Thomas 
Bennett
Sent: Wednesday, June 09, 2010 9:36 AM


I don't know if this will be any help but you would need to replace the reply-
to header I expect.

Thomas


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Harish Maringanti
Ken,

A while back our sys admin pointed out that php mail function takes a '-f'
parameter that can control the sender address. If you haven't tried it yet
maybe you can give it a try..

Harish

-
Harish Maringanti
Systems Analyst
K-State Libraries
785.532.3261

On Wed, Jun 9, 2010 at 8:56 AM, Ken Irwin  wrote:

> We originally tried changing the From and Reply-To mail headers, but the
> phones we tested on didn't honor the email headers. Instead they show an
> address @www6.wittenberg.edu (ie, our web server). That's why I was
> thinking there would be some sort of SMS-equivalent-header that it cared
> about more.
>
> Ken
>
> -Original Message-
> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of
> Thomas Bennett
> Sent: Wednesday, June 09, 2010 9:36 AM
>
>
> I don't know if this will be any help but you would need to replace the
> reply-
> to header I expect.
>
> Thomas
>


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Kyle Banerjee
If memory serves me right, it is possible that you might be stuck because I
think this parameter can be disabled by configuration which makes sense if
you think about it. Also, even if it isn't disabled and the web user is not
configured as a trusted sender, a warning message will be appended to the
email headers that will get your message identified as spam by just about
every filter out there.

kyle

On Wed, Jun 9, 2010 at 7:56 AM, Harish Maringanti wrote:

> Ken,
>
> A while back our sys admin pointed out that php mail function takes a '-f'
> parameter that can control the sender address. If you haven't tried it yet
> maybe you can give it a try..
>
> Harish
>
> -
> Harish Maringanti
> Systems Analyst
> K-State Libraries
> 785.532.3261
>
> On Wed, Jun 9, 2010 at 8:56 AM, Ken Irwin  wrote:
>
> > We originally tried changing the From and Reply-To mail headers, but the
> > phones we tested on didn't honor the email headers. Instead they show an
> > address @www6.wittenberg.edu (ie, our web server). That's why I was
> > thinking there would be some sort of SMS-equivalent-header that it cared
> > about more.
> >
> > Ken
> >
> > -Original Message-
> > From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of
> > Thomas Bennett
> > Sent: Wednesday, June 09, 2010 9:36 AM
> >
> >
> > I don't know if this will be any help but you would need to replace the
> > reply-
> > to header I expect.
> >
> > Thomas
> >
>



-- 
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787


Re: [CODE4LIB] SMS headers in email->sms

2010-06-09 Thread Joe Hourcle

On Wed, 9 Jun 2010, Ken Irwin wrote:

We originally tried changing the From and Reply-To mail headers, but the 
phones we tested on didn't honor the email headers. Instead they show an 
address @www6.wittenberg.edu (ie, our web server). That's why I was 
thinking there would be some sort of SMS-equivalent-header that it cared 
about more.


Are you changing the line 'From:' (the "From header") or 'From ' (the 
"envelope from", which is part of the SMTP protocol's routing, and *not* 
part of the e-mail message)


I don't know if this will help or not, but it sounds like the -f flag is 
the way to go:



http://stackoverflow.com/questions/179014/how-to-change-envelope-from-address-using-php-mail

-Joe





-Original Message-
From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Thomas 
Bennett
Sent: Wednesday, June 09, 2010 9:36 AM


I don't know if this will be any help but you would need to replace the reply-
to header I expect.

Thomas