Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.