Email to SMS

Search APIs helpdesk

Email to SMS

You are here:

This API processes emails to SMS that are sent to email address: recipient_number@email2sms.gretor.net

Recipient_number has to be written in international format, for example 447971796595.

The email subject contains 3 mandatory parameters:

  • wallet_id;email2sms_password;smstype

and 2 optional parameters:

  • isms;sender

The parameters are separated by a semicolon and body of the email contains SMS text.

PARAMETER NAME VALUE MANDATORY
smstype=1 When smstype=1 is used, SMS text is shortened to 160 characters Yes
smstype=2 When smstype=2 is used, flash SMS is activated, and SMS text is shortened to 160 characters Yes
smstype=10 When smstype=10 is used, EMS is activated, and SMS text can have up to 612 characters Yes
unicode Unicode SMS is not supported No
wallet_id Log in to Gretor SMS Panel > Modules & APIs > email2SMS > copy the wallet ID Yes
email2sms_password Log in to Gretor SMS Panel > Modules & APIs > email2SMS > copy the password Yes
isms SMS gateway (default 0, value 0 – 4) – log in to the Gretor Sms Panel (https://sms.gretor.net) and see this parameter in the price list No
sender Sender of SMS (number in international format, no leading zeros or a “+” sign, e.g. 447971796595 or text max. 11 characters, e.g. “eshop.com”). "isms" parameter is mandatory for using text sender ID. To choose the right “isms” parameter, log in to the Portal and display the price list. “isms” parameter value is displayed if you hover over the wrench icon for developers No

Emails are checked every minute. In case of error, the server will send you email with error number. You need to activate the email2SMS API on the Portal first.

Example 1

Sending SMS up to 160 characters to number +447971796595 with text “Hi, how is it going?”, dispatched over default gateway (system number).

To email address: 447971796595@email2sms.gretor.net

Email subject: gretor180012091617000;MadeUpPassword;1 (explanatory notes: wallet_id;email2sms_password;smstype)

Body of the email: Hi, how is it going?

Example 2

Sending SMS up to 160 characters to number +447971796569 with text “Hi, how is it going?”, dispatched over gateway via text sender “eshop.com”.

To email address: 447971796569@email2sms.gretor.net

Email subject: gretor180012091249500;Password12345;1;2;eshop.com (explanatory notes: wallet_id;email2sms_password;smstype;isms;sender)

Body of the email: Hi, how is it going?

Go to Top