Jump to content

Recommended Posts

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 3334445555@vtext.com 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

Edited by 2outspoken

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.