It is currently Sat Feb 04, 2012 3:43 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Line Feed Problem for SMS email message
PostPosted: Wed Oct 24, 2007 10:23 am 
Offline

Joined: Tue May 15, 2007 6:18 pm
Posts: 41
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 fine 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 message.but in case 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.
--------------------------------------

Code:

$plain_message = "this is the \r\n text message\r\n";

$html_message = "this is \r\n<br/> HTML message\r\n<br/>";

$headers = "From: Suresh<xxxx@...>\r\n";

$headers .= "MIME-Version: 1.0\r\n"."Content-Type:
multipart/alternative; boundary=\"123456\"\r\n";

$message = "--123456\r\n"."Content-Type: text/plain;
charset=\"UTF-8\"\r\n"."Content-Transfer-Encoding: 7bit \r\n";

$message .= $plain_message."\r\n"; //plain text

$message .= "--123456\r\n"."Content-Type: text/html;
charset=\"UTF-8\"\r\n"."Content-Transfer-Encoding: 7bit \r\n";

$message .= $html_message."\r\n";

$message .= "--123456--\r\n";

mail("xx@...","test",$message,$headers);// send email



A.suresh Kumar


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron