Re: Please help me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



use and/or study this nice bit of code (well I like it anyway, Manuel Lemos probably
diagrees :-) ....

http://phpmailer.sourceforge.net/



Anju Prasad wrote:
> 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@xxxxxxxxx> 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@xxxxxxxxx <mailto:stuttle@xxxxxxxxx>> wrote:
>> >
>> >     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 the
>> headers
>> >     and 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.
>> >
>> >     -Stut
>> >
>> >     > On 1/2/07, zoticaic <zoticaicpassion@xxxxxxxxx
>> >     <mailto:zoticaicpassion@xxxxxxxxx>> wrote:
>> >     >>
>> >     >>
>> >     >>
>> >     >> --
>> >     >> > My Seeding Blog | http://bytes.nullp0inter.com
>> >     >> > Hire me as Freelancer |
>> >     >> http://www.getafreelancer.com/affiliates/shockx/
>> >     >> > -----Original Message-----
>> >     >> > From: Anju Prasad [mailto:anju242k@xxxxxxxxx
>> >     <mailto:anju242k@xxxxxxxxx>]
>> >     >> > Sent: Tuesday, January 02, 2007 5:13 PM
>> >     >> > To: php-general@xxxxxxxxxxxxx
>> <mailto:php-general@xxxxxxxxxxxxx
>> >
>> >     >> > Subject:  Please help me
>> >     >> >
>> >     >> > When I send a mail using php using mail(), and using html tags
>> in
>> >     >> message
>> >     >> > body , these tags are being displayed as it is.
>> >     >> > Please let me know if there's any way of how to tackle with
>> this.
>> >     >>
>> >     >> You need to add some headers that should indicate that the type
>> >     of mail
>> >     >> you 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
>> >     >>
>> >     >>
>> >     >
>> >
>> >
>>
>>
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux