Re: Please help me
| From: | Anju Prasad | Date: | Tue, 02 Jan 2007 10:05:26 +0000 |
| Subject: | Re: Please help me | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246340@lists.php.net to get a copy of this message | ||
my problem got solved in gmail, but now i am not getting mails any where
else...
headers now i am using is:
$headers = 'MIME-Version: 1.0'."*\n*".'Content-type:
text/html;charset=iso-8859-1'."*\n*".'Content-Transfer-Encoding:
8bit'."*\n*".'From:'.$sitename."*\n*".'return-path:'.$from;
On 1/2/07, Stut <stuttle@gmail.com> wrote:
Please don't reply to me directly. Always include the list in replies. Anju Prasad wrote: Headers i am using: $headers = "MIME-Version: 1.0*\r\n* Content-type: text/html;charset=iso-8859-1*\r\n*Content-Transfer-Encoding: 8bit *\r\n\r\n*From:$sitename*\r\n*return-path: $from"; Message body: $message = '<html><body>Hi '.$_POST[name1 ].' <br>'.$message.'<p>Regards</p><p> '. $sitename.' </p></body></html>' ; Now tell is there any wrong in this syntax There's something wrong with that syntax. Assuming it's not your mail client wrapping the line above, you have two newlines between the MIME-Version header and the Content-Type header. This will cause the headers after MIME-Version to be ignored. -Stut On 1/2/07, *Stut* <stuttle@gmail.com <mailto:stuttle@gmail.com>> wrote:My Seeding Blog | http://bytes.nullp0inter.com Hire me as Freelancer |Anju Prasad wrote:I am doing that but still not getting any fruitful results.Show us exactly what you're doing. If your mail client is not displaying the email as HTML one of two things is happening. 1) You're not telling it it's an HTML email, or 2) your mail client is ignoring theheadersand displaying the raw message. I'm gonna go with the former since hopefully you'd remember if you'd told your mail client to do the latter.-StutOn 1/2/07, zoticaic <zoticaicpassion@gmail.com<mailto:zoticaicpassion@gmail.com>> wrote:--
http://www.getafreelancer.com/affiliates/shockx/-----Original Message----- From: Anju Prasad [mailto:anju242k@gmail.com
<mailto:anju242k@gmail.com>]Sent: Tuesday, January 02, 2007 5:13 PM To: php-general@lists.php.net <mailto:php-general@lists.php.net
inSubject: [PHP] Please help me When I send a mail using php using mail(), and using html tags
this.messagebody , these tags are being displayed as it is. Please let me know if there's any way of how to tackle with
You need to add some headers that should indicate that the type
of mailyou are sending is an HTML email. Take this link from our friendly manual and see through Example 4 :
Sending HTML Emails http://www.php.net/manual/en/function.mail.php
<http://www.php.net/manual/en/function.mail.php>HTH Jervin