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", "");
Is it possible to save inbound emails into the access database and then to forward to mobile number as sms using the sms.automatic.flash message type
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 384
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 598