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"
More Related Contents:
- How to embed images in html email
- Could not instantiate mail function. Why this error occurring
- How to provide dynamic HTML in PHP?
- w3 schools form tutorial doesnt send email
- Send email with PHP from html form on submit with the same script
- Send HTML in email via PHP
- PHP mail function doesn’t complete sending of e-mail
- How do I prevent mails sent through PHP mail() from going to spam? [duplicate]
- PHPMailer: SMTP Error: Could not connect to SMTP host
- Converting HTML to plain text in PHP for e-mail
- Php mail: how to send html?
- Sending HTML email from PHP
- PHPMailer GoDaddy Server SMTP Connection Refused
- Get img src with PHP
- Can I embed a .png image into an HTML page?
- PhpMailer vs. SwiftMailer? [closed]
- Phpmailer error “Could not instantiate mail function”
- How to add text to an image with PHP GD library
- require(vendor/autoload.php): failed to open stream
- php link to image file outside default web directory
- How to get the browser to cache images, with PHP?
- Send PHP HTML mail with attachments
- How to embed images in a single HTML / PHP file?
- How to display an BLOB image stored in MySql database?
- PHPMailer character encoding issues
- Setting up PHPMailer with Office365 SMTP
- Convert HTML to Image in PHP without shell
- phpMailer – How do you Remove Recipients
- Add attachment through PHPMailer
- phpmailer – The following SMTP Error: Data not accepted