2outspoken Posted December 29, 2013 Share Posted December 29, 2013 I am using pear mail to process emails on my php site with great success but tonight I am researching a known issue in hopes for a resolution. I know that by sending email to cell numbers like [email protected] will submit my message as a text message to the recipients phone. My issue with this is that the message truncates. My question is: What is the bes way around this? - obvious answer is to keep my messages short. a. should I strlen() the message, and loop the mail submission until the entire message has been processed? b. is there a switch within pear that I am un aware of? Thanks in advance for any responses. -Patrick Link to comment https://forums.phpfreaks.com/topic/284953-handling-pear-mail-to-txt-truncated-messages/ Share on other sites More sharing options...
ignace Posted December 29, 2013 Share Posted December 29, 2013 On the verizon website it says that name is part of the 140 char limit. So simply limiting your message to 140 chars is insufficient, you need to do: $sender = 'Some Name'; $charsLeft = 140 - strlen($sender);$charsLeft is the maximum length of your message. Link to comment https://forums.phpfreaks.com/topic/284953-handling-pear-mail-to-txt-truncated-messages/#findComment-1463203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.