942,959 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 62
  • PHP RSS
Jul 29th, 2010
0

PHP mail

Expand Post »
Hi every one. i m sending mail in php and facing a problem

the problem is
when i add some text in the body like this
<b>this text is bold</b>
then this text is shown as it is
in the mail
i want to show this text bold
The problem here is that the tags do not apply and are shown as it is.

Please tell me the solution.

Thanks in advance
Similar Threads
Reputation Points: 2
Solved Threads: 6
Light Poster
adcodingmaster is offline Offline
47 posts
since Sep 2009
Jul 29th, 2010
1
Re: PHP mail
Hi adcodingmaster,

It sounds like you are sending a plain text email.
To send it in HTML format, add this header
PHP Syntax (Toggle Plain Text)
  1. $headers .= "MIME-Version: 1.0" . "\r\n" . "Content-type:text/html;charset=iso-8859-1" . "\r\n";
This will add the correct text to the variable called $headers (it will not replace it). Change this variable name if needed.


Hope this helps.
Zagga
Reputation Points: 22
Solved Threads: 50
Posting Whiz in Training
Zagga is offline Offline
225 posts
since Dec 2009
Jul 29th, 2010
0
Re: PHP mail
perfect answer. that has solved my problem
Reputation Points: 2
Solved Threads: 6
Light Poster
adcodingmaster is offline Offline
47 posts
since Sep 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Warning: mysql_result() expects parameter 1 to be resource, boolean given
Next Thread in PHP Forum Timeline: Assign chuck of html to a php variable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC