PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



Line Feed Problem for SMS email message

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
suresh_nsnguys



Joined: 15 May 2007
Posts: 41

PostPosted: Wed Oct 24, 2007 9:23 am    Post subject: Line Feed Problem for SMS email message Reply with quote

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:1]

$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

[/code:1]

A.suresh Kumar
Back to top
View user's profile Send private message
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum