Page 1 of 1

php mail not working with attachment

Posted: Tue Sep 08, 2009 11:55 pm
by sanju
Hi all,

I have a problem in sending a mail through php mail function. I need to send an image as attachment and HTML tags in the message. But image is attaching but html is not taking as html.

How vcan I integrate both attachment and html in same mail.

I have tried many header options like:- $headers .= "\r\nContent-Type: multipart/mixed;
$headers .= "\r\nContent-Type: multipart/alternative;

But no use

Can any one help me please

Regards