Email & Text Messages (SMS) through the Talk2m SMTP Relay

03 Aug 2022
The present document explains how to configure your Ewon Flexy device to send out email or text messages (SMS) using the Talk2M relay server.
For additional related documentation and file downloads, please visit www.ewon.biz/support. The original document could be found here: KB-0046

APPLICABLE PRODUCTS

Ewon Flexy.

PRE-REQUISITES

Talk2m Account
To be able to use the Talk2m relay server, you need an Ewon Flexy connected online in your Talk2Mm account.
mceclip2.png

You can create a Talk2m account by installing our Ecatcher software and by following the
Talk2m account creation proposed on the login screen.

SMTP Server
The Talk2m SMTP relay address to use is : relay.talk2m.com.
Maximum size of an attachment of 10240000 bytes.

IN THIS ARTICLE

 

General Configuration

SMTP Server

To configure the Talk2M SMTP relay in your Ewon, follow the following procedure:
  1. Open your Internet browser.
  2. Browse the IP address of your Ewon and log in the Flexy Web Interface.
  3. Go to: Setup ► System ► Main ► Net services ► SMTP (mails).
  4. Fill the different configuration fields:
    • SMTP Server Address: relay.talk2m.com.
    • SMTP Server Port: 25
    • Email “From” User name: type any email address.
      This Email address will be used in the Reply-To field of the Email :
      mceclip1.png
    • Username: must be left empty
    • Password: must be left empty

mceclip0.png

 

Talk2m Account

There is no configuration needed for enabling the Email and SMS relay in your Talk2m account.
As long as the Ewon Flexy is online in your account, it can use the Talk2M SMTP relay.

 

Send Emails

Alarm Notifications

If you wish to send an email using the Talk2M relay server when an alarm is triggered, follow the following procedure:

  1. Go to: TagsValues in the web interface of your Ewon Flexy.
  2. Switch the mode of the page from VIEW to SETUP.
  3. Click the Configure Alarm actions button, which has a bell icon (An alarm condition must have been configured for this Tag).
    mceclip4.png
  4. Select for which state of the alarm you would like to send an email:
      • ALM: when the tag enters the alarm state.
      • ACK: when the alarm has been acknowledged.
      • RTN: when the tag comes back to normal state.
      • END: when the tag has both encountered the ACK and RTN states.
  5. Provide the details of the email: Email to, Email Subject and Email Attachment(s) must be filled.
  6. Save the configuration.
  7. Switch back to VIEW mode.

mceclip0.png

Sending an email to multiple recipients is possible. Just add a comma “,” (no spaces) between the different email addresses in the <Email to> or in the <Email CC>.

Using BASIC Script

You can send emails through the Talk2M SMTP relay by using the SENDMAIL BASIC command.

  • Example:
SENDMAIL "[email protected]", "[email protected]", "Email Subject", "Email Body"

More information can be found in the Programming Reference Guide.
 

Send Text Messages (SMS)

You have the possibility to send text messages even if your Ewon is not equipped with a cellular extension card.
The process can be summarized as follows:
  • You configure the Ewon Flexy to send an email through the Talk2M SMTP relay like previously explained and you specify the recipient phone number inside the email address
  • The Talk2M relay transforms the email into a text message (SMS) and sends it to the phone number provided in the former email address.

This SMS sending is a Paid service of Talk2M.  Talk2M will charge 0.30 €/SMS on your account credit for the Free+ Account and 0.15€/SMS for the Pro Account.

 

Syntax

To send a text message (SMS) through the Talk2M relay, you must send an email to the following address:<mobilenumber>@sms.talk2m.com.


The mobile number format must begin with the international prefix phone number syntax starting. The international prefix is a or a series of 0 (zero) followed by the country code.


For example: use [email protected], to send a text message (SMS) to the phone number 0470123456 in Belgium (country code: 32).


Do not use the + sign instead of the (series of) 0 (zero) as this results in an error in the event logs as well as the scheduled actions.

 

mceclip1.png

 

mceclip2.png

 

Alarm Notifications

To send a text message (SMS) when an alarm is triggered, proceed as follows:

  1. Go to: Tags ► Values on the web interface of your Ewon Flexy.
  2. Switch the mode of the page from VIEW to SETUP.
  3. Click the Configure Alarm actions button which has a bell icon (An alarm condition must have been configured for this Tag).
    mceclip3.png
  4. Select for which type of alarm you would like to send an text message (SMS):
    • ALM: when the tag enters the alarm state.
    • ACK: when the alarm has been acknowledged.
    • RTN: when the tag comes back to normal state.
    • END: when the tag has both encountered the ACK and RTN states.
  5. Provide the details of the text message: Short Message, Email to, Email CC, Email
    Subject must be filled. Other fields are not considered.
    If Short Message is checked, the alarm notification is added at the end of the message (Email Subject). An example would be: 
    Testing Talk2M relay, Tag:Tag1,From:Ewon,At:16/04/2020 22:46:39, Cur. Val 0 (ALM LVL),
    Desc:,Action:
  6. Save the configuration.
  7. Switch back to VIEW mode.

mceclip4.png

Sending a text message to multiple phone numbers is possible: add a comma “,” (no spaces)
between the different phone numbers in the Email to or in the Email CC.

 

Using BASIC Script

You can send text messages (SMS) through the Talk2M SMTP relay by using the SENDMAIL BASIC command and by specifying the phone number in the email address.

SENDMAIL "[email protected]", "", "Email Subject", ""

Only the subject — Email Subject — is sent via text message (SMS). The last argument — Email
Body — is not considered.

More information can be found in the Programming Reference Guide.