1
I’m trying to send an image in the body of the email with php Mailer follows my Cod:
$mail->AddEmbeddedImage("img/header.jpg", "img1","header.jpg", "base64", "image/jpg");
and the html of the msg body is like this
<img src='cid:img1'>
nothing arrives even in gmail yahoo outlook. someone can help me?
guy didn’t work out :(*
– Jasar Orion
I did so, without basis 64... $dirpath = '/Applications/XAMPP/xamppfiles/htdocs/email/phpmailer'; $message = file_get_contents($dirpath . '/mail_templates/email_send.html'); $mail->Addembeddedimage($dirpath . '/mail_templates/images/logo.gif', 'logo', 'logo.gif');
– Mac_dev
voi tentar ,but by security measures the server had to be internal.
– Jasar Orion