How to Forward Email to SMS

This sample demonstrates how to forward incoming email messages to an SMS account when the recipient phone number is in the subject of the email message.

Setup Email connection

  1. In the Connections window click the Add button and select the Email connection from the list of available connection types.
  2. In the Options tab of the Add Email Connection dialog enter the following parameters:
    Session type: Receive only
  3. In the Login tab enter your email account credentials.
  4. In the Receive tab enter your email server options and following parameters:
    From: %FromEmail%
    To: %PhoneSubject%
    Text: %Text% - %FromEmail%
  5. Click the OK button to close the Add Email Connection dialog.
  6. Click the Connect button to connect the Email connection.

Setup Routing service

  1. Click the New button on the main toolbar and select the Routing service option.
  2. Click the Setup button on the main toolbar to display the Routing Setup dialog.
  3. In the Filters tab of the Routing Setup dialog click the Add button to display the Add Filter dialog.
  4. In the Add Filter dialog enter the following parameters:
    Account: Use the selection button ( ... ) to select the Email account created above.
  5. In the General tab of the Routing Setup dialog click the Add button to display the Add Rule dialog.
  6. In the General tab of the Add Rule dialog enter the following parameters:
    Name: Email to SMS
    Route to: Use the selection button ( ... ) to select the account which you wish to use for sending SMS messages.
    Override from: SENDER_ADDRESS
  7. Click the OK button to close the Routing Setup dialog.
  8. Click the Start button on the main toolbar to start the Routing service.

Test forwarding

  1. Use your email application or a web mail service to send email message to your email account having the phone number of the recipient in the message subject. For example:
    Subject: Message for +1234567890
    Text: Hi, how are you?
  2. Email connection in SMS Studio will collect this message, extract the phone number from the email subject, and place the message in the Inbox. The Routing service will receive this message and forward it to the final recipient using the SMS account.
  3. Check the Outbox window to see if the message is being sent correctly.

Related topics

Email Connection, Routing Rules

 

Copyright © 2002-2010 CodeSegment. All rights reserved.

   www.codesegment.com