Send email with PHPMailer – embed image in body

I found the answer:

$mail->AddEmbeddedImage('img/2u_cs_mini.jpg', 'logo_2u');

and on the <img> tag put src="https://stackoverflow.com/questions/3708153/cid:logo_2u"

Leave a Comment