php mail not working with attachment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
sanju
Forum Commoner
Posts: 65
Joined: Sat Jun 21, 2008 2:15 am
Location: Kochi, India

php mail not working with attachment

Post 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
Post Reply