Hello sir,I am facing some problem while sending SMS and MMS email message to moble device using PHP and HTML. MMS email message is displaying book with proper linefeed but SMS message is displaying without line feed i heard SMS doesnot support HTML but i attached '\r\n' to my SMS message but its not working while i am receiving MMS in my mobile i am receiving as HTML communicate but in inspect of SMS,i am receiving as HTML message but not plain text message i am little bit confused. Any one help me. I attached my source code.--------------------------------------
$plain_message = "this is the \r\n text message\r\n"; $html_message = "this is \r\n<br/> HTML communicate\r\n<br/>"; $headers = "From: Suresh<xxxx@...>\r\n"; $headers.= "MIME-Version: 1.0\r\n"."Content-Type:multipart/alternative; boundary=\"123456\"\r\n"; $communicate = "--123456\r\n"."Content-Type: text/plain;charset=\"UTF-8\"\r\n"."Content-Transfer-Encoding: 7bit \r\n"; $message.= $plain_communicate."\r\n"; //plain text $communicate.= "--123456\r\n"."Content-Type: text/html;charset=\"UTF-8\"\r\n"."Content-Transfer-Encoding: 7bit \r\n"; $message.= $html_communicate."\r\n"; $message.= "--123456--\r\n"; mail("xx@...","test",$message,$headers);// send email
You cannot affix new topics in this forumYou cannot reply to topics in this forumYou cannot alter your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forum
Forex Groups - Tips on Trading
Related article:
http://www.weberforums.com/ftopic11295.html
comments | Add comment | Report as Spam
|