Support forum
Hello Peter,
Diafaan SMS Server has no direct way to write received email message to a database, it is possible to do this with a Scripting Gateway but if you are using a gateway script anyway, there is an easier way to do what you want. Please not that the Scripting Gateway is only available on the basic- and full edition of Diafaan SMS Server.
The Scripting Gateway can be used to change the sending parameters before sending the message. This includes the Message Type parameter, you can set it to sms.automatic.flash to send the message as a flash message. To do this, you have to set the "Gateways" options of the Email Connector to route the messages only to the Scripting Gateway and let the Scripting Gateway re-route the messages to the GSM Modem Gateway.
For example, if you have a GSM Modem Gateway with the same name, you can replace the "OnMessageToSend" function with the following C# code:
string message, string messageType)
{
PostDispatchMessage(recordId, toAddress, fromAddress, message, "sms.automatic.flash", "GSM Modem Gateway", "");
}
Regards, Henk
Most Users Ever Online: 529
Currently Online:
5 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 672
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1141
Posts: 3899
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1488