Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozeki.hu
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

Dynamic parameters in SMTP Contents | SearchE-mail alerts

Home > Product Manual > Examples and Solutions > Email to SMS feature > Optional SMTP parameter

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Examples and Solutions
  Telephone networks
  SMS Pin game
  E-mail to SMS alert
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  SMS Load Balancing
  Asterisk PBX SMS
  SQL SMS Gateway
  SMS Service Provider
  Service Provider
  SMS PIN code query
  SMS Counter game
  SMS newsgroup
  Distributed SMS
  SMS Menu
  Google maps
  Forwarding
  Birthday greeting - SQL Express
  Birthday greeting - MySQL
  Birthday greeting - Oracle
  Instant brochure - MMS autoreply
  Alphabet letter game
  SMS sport betting service
  E-mail about outgoing SMS messages
  SMS Information Menu
  Email to SMS feature
  Dynamic parameters in SMTP
  Optional SMTP parameter
  E-mail alerts
  Reminder example
  Bulk SMS Client
  Bulk SMS to a given phone number range
  Filtering phone numbers
  Ozeki Phone Sytem PBX SMS
  Autoreply voucher example
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 


Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

Using optional SMTP header fields in SMTP messages

In Ozeki NG SMS Gateway there is an option to operate with an optional parameter passed via an SMTP message. This guide gives information about how to use optional header field values SMTP messages - note that this feature is only available in Ozeki NG SMS Gateway 4.2.5 or above.

You can read about Ozeki NG SMS Gateway's Email to SMS feature here: Email to SMS feature in Ozeki NG SMS Gateway

While sending SMTP messages, you can include optional parameters in the SMTP messages' headers.

If you have enabled SQL reporting in the servers preferences, you can track this value (Figure 1).



Figure 1 - Enabling SQL reporting

You need to have an appropriate field in the table containing the messages of the outbox. This field will be containing the optional parameter value you pass. Note, that the first five fields order (username, msgtype, msgid, sender, reciever) cannot be changed.

While editing the SQL script in the Accepted for delivery section, you can use the $optional_parametername_ keyword to let Ozeki NG SMS Gateway save your messages' optional parameters. Note, that the parameter name in the keyword must contain only alphanumeric characters except for the underline ("_") character.

Have a look at the example below.

First, you need to create the database table with the below script so it can contain the parameterís value.


CREATE TABLE IF NOT EXISTS 'outbox' (
   'id' int(11) NOT NULL AUTO_INCREMENT,
   'username' varchar(30),
   'msgtype' varchar(160),
   'msgid' varchar(60),
   'callbackid' varchar(255) ,
   'sender' varchar(30) ,
   'receiver' varchar(30),
   'msgsubject' varchar(1024) ,
   'msgdata' text ,
   'acceptedfordeliverytime' datetime ,
   'deliveredtonetworktime' datetime ,
   'deliveredtohandsettime' datetime,
   'operator' varchar(30),
   'route' varchar(30),
   'status' varchar(130),
   'errormessage' varchar(1024),
   'cost' varchar(10),
   'test' int(11),
   PRIMARY KEY ('id')
)


Notice that we added the test field which will contain the optional parameter's value.

After that, in the Server preferences menu you need to change the SQL script under the Databases panel and Accepted for delivery tab. You need to write in the additional field name and the appropriate keyword ($optional_test_ now) into the INSERT statement (Figure 2).


Figure 2 - SQL script for optional parameter

Then, you can send an SMTP message with a "test" parameter via telnet. The value for this parameter is 43 (Figure 3).

Figure 3 - SMTP message sent with "test" parameter


The database will update the corresponding record's test field with the passed value (43 now).

This feature can be used to track emails by sending a dynamically set parameter in SMTP messages.

For more information please contact us at info@ozekisms.com.





Next page: E-mail alerts
Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Product Manual > Examples and Solutions > Email to SMS feature > Optional SMTP parameter
Legal | Privacy policy | Terms of use
Page: 2743 | Login | 35.172.150.239