Jump to content

Embeding a picture in email...


budimir

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.