Routing SMS Messages to E-Mail

NowSMS can be configured to route received SMS messages to an e-mail address. This configuration is similar to the configuration of “Routing SMS Messages to a POP3 Client” as described in Using the POP3 Server. However, only the method of using the “2-way” command facility can be used to route received SMS messages to an e-mail address other than a local POP3 client account.

The “2-way” facility in NowSMS, which is used to process received SMS messages, is normally used to deliver received SMS messages to an HTTP script or executable program. However, it can also be used to route received SMS messages to an e-mail address.

When defining a “2-way” command in the “Received SMS Command Table”, it is possible to define a “mailto:” link in the “Command to Execute” field.

Possible “Command to Execute” values for this purpose include:

“mailto:user@domain.com” – The SMS message will be put into an e-mail message and sent to user@domain.com.

“mailto:@@SMSPREFIX@@” – NowSMS will look for an e-mail address to be the first text of the received SMS message. NowSMS will send the text of the SMS message after this e-mail address to the e-mail address that appears as the first text of the SMS message. (Example: SMS message text = “nowsms@now.co.uk This is a test” — e-mail message will be sent to “nowsms@now.co.uk” with text “This is a test”.)

If “mailto:@@SMSPREFIX@@” is used, and NowSMS does not see a valid e-mail address at the start of the SMS message, NowSMS will reply with the following text: “Invalid e-mail recipient. Please specify a valid e-mail address to start the text of your message.”

For additional information on defining 2-Way SMS commands, please see 2-Way SMS.