In the basic- and full editions of Diafaan SMS Server you can use a Scripting Gateway to filter the message text and dispatch the messages to another gateway for sending.
To set this up, first route the messages from the Email Connector to the Scripting Gateway. Then in the 'OnMessageToSend' function in the script filter the message to replace one or more new lines to a single space character:
message = message.Replace("\r", " ").Replace("\n", " "); while (message.Contains(" ")) message = message.Replace(" ", " ");
Finally, dispatch the message to another gateway (here named 'GSM Modem Gateway'):
PostDispatchMessage(recordId, toAddress, fromAddress, message, messageType, "GSM Modem Gateway", "");
I am using Diafaan Gateway to let users send SMS from a website to their mobile phones. I am doing this by receiving emails from POP.
Some of the site users are adding unnecessary line breaks to their messages and the SMS they get looks awful. Is there any way in this software i can remove line breaks from their messages ?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 597
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1263