Support forum
Hello Mohsin,
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", "");
Regards, Henk
8:37 pm
Hello,
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: 529
Currently Online:
1 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