Script examples

Script examples SearchSearch
Author Message
Lars Nielsen
New member
Username: Larsmservice

Post Number: 23
Registered: 10-2003
Posted on Tuesday, January 13, 2004 - 02:20 pm:   

Bryce.
Do u have any good script examples to create a sms2email service ?

When a sms comes in from one of the modems, it should send an email to a specified email.

Lars Nielsen
New member
Username: Larsmservice

Post Number: 24
Registered: 10-2003
Posted on Tuesday, January 13, 2004 - 02:35 pm:   

OK This would be nice.
Under each SMSC connection you have a MMS settings where you can forward all incoming MMS to an email.
There ought to be a SMS settings button there as well, where you could choose to forward all incoming SMS to an emailaddress.

I know i could use the 2-way system, but it takes sms from all the SMSCs in nowsms.

Am i right ?


;)Lars
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1591
Registered: 10-2002
Posted on Tuesday, January 13, 2004 - 03:10 pm:   

Hi Lars,

We did add support for a "mailto:" link in the "2-way" command table in a recent version.

When that command is executed, it basically puts the text of the SMS into an e-mail message, and sends it to the e-mail address specified after the "mailto:" link.

There is also a special case where you can configure the command as "mailto:@@SMSPREFIX@@". This allows you to send an SMS message in where the first part of the message is the e-mail address that you want to send the message to.

And it is even possible to support replies back via e-mail. However, this does require that E-mail to SMS support is enabled in the MMSC, and that any one who is going to be allowed to have e-mail routed to SMS be provisioned in the "MMSC Users" list. (The terminology is a bit confusing because the SMTP server is in the MMSC module.)

However, this setting applies to all received messages, not just a single modem/connection. So it is not useful on a system with many modems performing other tasks.

Our current plan is to modify the "2-way" system so that it also accepts a "received phone number" parameter, so that you could define a command there that is processed only for a particular modem. This won't happen in the upcoming v5.01 maintenance release, but it should happen within a month or two, as it has become a very frequent request.

-bn