Академический Документы
Профессиональный Документы
Культура Документы
SMTP/PO
P3
E-mail
Servers
Queue
API
HTTP
Adaptor
s
methods
Encapsula
tor
Sendmail,
Qmail, MS
Exchange,
etc
Applicati
ons
C+
+,C#,ASP,P
HP, AJAX,
SQL
queries
TEXT
Files
Databas
es
Oracle,
MSSQL,
Sybase,
Description
E-mail user
Autoreply
user
SMPP user
[ADO/OLEDB];
MySQL, Postgre
OzekiNG + Databases
Quickstart
Requirements
Two database tables: ozekimessageout and
ozekimessagein
A database user account and a connector
ADO]
[ODBC or
Description
Example
1, 2, 3, ...
+36441234567,
06459876543
This is the text of the message.
msg
This is a message
text.
This is the time of sending the message.
senttime
2007-04-23
10:02:13
receivedti This is the time of receiving the message. 2007-04-23
me
10:02:13
This denotes which service provider
operator
Vodafone1
msgtype
SMS:TEXT,
Column
name
Description
Example
id
1, 2, 3, ...
sender
+36441234567,
06459876543
receiver
+36441234567,
06459876543
msg
senttime
2007-04-23 10:02:13
receivedti
me
2007-04-23 10:02:13
operator
ANY; Vodafone1
msgtype
SMS:TEXT,
SMS:WAPPUSH,
status
Description
send
sending
sent
notsent
The message has not been sent out to the SMS Center
of a specified service provider. Some error has caused
the sending to fail.
delivered
undelivere
CREATE TABLE
ozekimessageout (
id int IDENTITY (1,1),
sender varchar(30),
receiver varchar(30),
msg varchar(160),
senttime varchar(100),
receivedtime
varchar(100),
operator varchar(100),
msgtype varchar(30),
reference varchar(30),
status varchar(30),
errormsg varchar(250)
);
You can optionally create an index in the database for the 'id' field
of the outgoing SMS table to support SQL updates.
Configure Logging
Monitoring Events
Sending a Message
insert into ozekimessageout (receiver,msg,status)
values ("+97150XXXXXXX","Hello world","Send");
Queue
Encapsula
tor
WWW
Server
HTTP
POST
Applicatio
n
C+
+,C#,ASP,P
HP, AJAX,
http://127.0.0.1:9501/ozeki?action=SendMessage&username=user&passw
recipient=050XXXXXXX&messageData=hello
HTTP Fields
Parameter
Description
Values
Example
action
Mandatory field,
specifying the API
command
sendMessage
action=sendMessage
originator
Optional field.
Specifies the sender
identity/number, URL
encoded
An alphanumeric
sender address, or
telephone number.
Encoded in UTF8
originator=
%2B36201112222
recipient
Mandatory field,
specifying the
recipient phone
number. Must be URL
encoded
Comma separated
telephone numbers in
local or international
number format
recipient=
%2B36201234567
messageTy
pe
messageType=SMS:T
EXT
messageDa
ta
messageData=Hello+
World
_charset_
utf-8
windows-1250
iso-8859-1
_charset_=iso-8859-2
strUrl = strUrl+strRequest;
'Create InternetExplorer
Dim WebBrowser: Set
WebBrowser =
CreateObject("InternetExplorer.Appli
cation")
WebBrowser.Navigate strUrl
Do While WebBrowser.busy
Loop
WebBrowser.Quit
'Display message info to the user
Response.Write("The message
has been sent. "+ chr(13))
%>
Q&A
Can we send the same message to multiple
phone numbers?
THANK YOU
For more information:
Milen Nikolov, milen@jernas.org
+971 50 6823400 or +971 2 6418533