Subject line when forwarding incoming SMS as email

Subject line when forwarding incoming SMS as email SearchSearch
Author Message
Anthony Dyson
New member
Username: Dysona

Post Number: 6
Registered: 08-2010
Posted on Monday, August 04, 2014 - 04:06 pm:   

I've set up NowSMS to forward incoming SMS messages as Email to a particular address. These are arriving with a blank subject line. Fair enough, SMS messages do not have a subject header.

However, I'd like to define a subject line such as "Incoming SMS message" or "Incoming SMS message from <<phone nr>>", so that these messages are a bit more recognizable in the team's inbox. Is there any way to do this?

Thanks
Anthony
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4974
Registered: 08-2008
Posted on Monday, August 04, 2014 - 04:45 pm:   

Hi Anthony,

I know we used to generate a fixed subject. I'm not sure why that changed, but I think it had to do with the shared mailbox configuration and reply handling.

In any event, there is a way to set this subject.

We do support some of the extended mailto: URL parameters, such as cc, bcc and subject.

So for example, the following 2way command can be configured:


mailto:someone@example.com?subject=Inbound%20SMS&cc=someone_else@example.com


--
Des
NowSMS Support
Anthony Dyson
New member
Username: Dysona

Post Number: 7
Registered: 08-2010
Posted on Monday, August 04, 2014 - 05:14 pm:   

Sounds good... but where do I enter this command?

The current documentation has a screen shot of the 2-Way settings, which contains a field "Command to Execute".

However, this screen shot dates from v2011.06.06 and the dialog in front of me, from v2014.05.30 does not have this field, but has either "Run HTTP or Local Command" or "Forward To E-Mail Address". If I put the mailto command in the field Run HTTP or Local Command, it says Cannot locate program file, please specify an http:// url or a valid executable file name.

Where does it need to go?
And I'm assuming I need body=@@FULLSMS@@ in there somewhere as well?

Thanks
Anthony
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4975
Registered: 08-2008
Posted on Monday, August 04, 2014 - 05:52 pm:   

Hi Anthony,

Good question. It looks like we still use the mailto: syntax under the hood.

So a forward to e-mail address setting like this will work:

someone@example.com?subject=Inbound%20SMS&cc=someone_else@example.com

The body parameter is assumed to be @@FULLSMS@@, so it is not necessary to include that parameter.

--
Des
NowSMS Support
Anthony Dyson
New member
Username: Dysona

Post Number: 8
Registered: 08-2010
Posted on Monday, August 04, 2014 - 06:09 pm:   

Perfect, works like a treat. Incorporating the sender's number into the subject was straightforward using the appropriate placeholder.

Thanks!
Anthony