budimir Posted October 4, 2009 Share Posted October 4, 2009 Hi guys, I'm using phpMailer to send emails. The way of sending pictures with it is that I put a picture somewhere on the net and then just send the link in email. So when someone opens the email it connects to that adress and it shows the picture. My problem is, I need to embed the picture within the email and I don't know how. Can you help me? How can I embed a picture and send it together with email? Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/176458-embeding-a-picture-in-email/ Share on other sites More sharing options...
jkejser Posted October 4, 2009 Share Posted October 4, 2009 Hi, You have to set the content-type of the email to html, and use html in your mail. Check - under Example #4 Sending HTML email: http://php.net/manual/en/function.mail.php With phpmailer do: $mail->IsHTML(true); http://phpmailer.worxware.com/index.php?pg=tutorial#4 Link to comment https://forums.phpfreaks.com/topic/176458-embeding-a-picture-in-email/#findComment-930188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.