Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: 00 36 52 532 731
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

Forwarding Contents | SearchBirthday greeting - MySQL

Home > Product Manual > Examples and Solutions > Birthday greeting - SQL Express

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
  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
  Cookie policy
 


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.

Birthday greeting SMS service with SQL Express

Video tutorial: Create a birthday reminder with SQL Express (part 1/3, Create database layout)
Video tutorial: Create a birthday reminder with SQL Express (part 2/3, Setup Ozeki SMS gateway)
Video tutorial: Create a birthday reminder with SQL Express (part 3/3, Test the configuration)

This page provides information on how to setup Ozeki NG – SMS Gateway, if you wish to send, for instance, to your employees, birthday wish SMS messages with the use of Microsoft SQL Express database server.

It is recommended to get familiar first with how you can send messages by using SQL Express. Concerning this, you can find information at the SMS messaging with SQL Express page.

To set up the birthday SMS service, we assume that a working SMS service provider connection is already configured in your Ozeki NG - SMS Gateway, and a database user is also setup. The database user is connected to the SQL Express database.


Figure 1 - System architecture

You can see the system architecture of the birthday SMS service in Figure 1. Here you can see how the system works in this case. First, Ozeki NG applies a query (1) to the database table regarding the people who have their birthday the current day and have not yet received a birthday SMS message. The database then submits this information to Ozeki NG (2). The software sends the birthday message to the SMSC (3), from which the people having their birthday receive the birthday SMS message (4) to their mobile phones.

To have the birthday SMS message service, first you need to have a database containing the birthday information. This table is referred to as birthday table in the following sections. The table definition should be as follows:

CREATE TABLE birthday (
  id int identity(1,1),
  customername varchar(100),
  customerphone varchar(30),
  birthdate datetime,
  lastnotified datetime,
  status varchar(30)
);


After the birthday table has been defined, we create it in the database server using an SQL command shell.

Put some test data into this database table you have just created.

INSERT INTO birthday (customername,customerphone,birthdate) VALUES ('Elisabeth','+3620111111','1980-01-01');
INSERT INTO birthday (customername,customerphone,birthdate) VALUES ('Mark','+3620222222','1982-04-29');

After this, you need to configure Ozeki NG - SM Gateway to send birthday reminder messages based on the information that our database contains. For this, you should adjust the commands in the configuration form of the database user.

The first command is used to pick up messages. Click on the SQL for sending tab of the configuration form of the database user. Modify the SELECT statement as follows:

SELECT id,'',customerphone,'Happy birthday' from birthday where
   datepart(month,getdate())=datepart(month,birthdate) and
   datepart(day,getdate())=datepart(day,birthdate) and
   (convert(varchar(10),getdate(),111)>convert(varchar(10),lastnotified,111) or
  (lastnotified is null));


The second command is used to update the “lastnotified” information in the birthday database table. Click on the tab of the Sending statement and modify the statement:

UPDATE birthday SET lastnotified=getdate() WHERE id=2


This update will make sure that the birthday reminder is sent out once only.

Finally, the other SQL commands should also be modified to work with the birthday table. Click on the Sent tab, and modify it as follows:

UPDATE birthday SET status='sent' WHERE id='$id'

And you should also modify the other commands the way described above (Not sent, Delivered, Undelivered).

To test if you have set up the service properly, you can send a birthday message if you set the date to the birthday of one of the persons in our example. Let us choose Mark. After setting the date of the computer, on which you are running Ozeki NG - SMS Gateway, to 2009-04-29, you can see in the databse user's Events window that the message was found in the database, and it was accepted for delivery. If you look into the database table, you will see that the "lastnotified" field was updated.

Dig deeper!
People who read this also read...





Next page: Birthday greeting - MySQL
Copyright © 2000 - 2017 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com