PHPMailer - sending image in html -


i want send html email image using phpmailer (not attachement, image in email content, using link image). when sending html message, in mailboxes text visible, image not (user has click button "show images" etc., , image appears). can help?

my code:

require_once('class.phpmailer.php'); require_once('class.smtp.php'); $mail = new phpmailer(); $mail->from = "mymail@domain.com"; $mail->fromname = "mymail"; $mail->addreplyto("mymail@domain.com", "mymail");   $mail->charset = 'utf-8'; $mail->issmtp(); $mail->host = "mail.domain.com";             $mail->mailer = "smtp";      $mail->smtpauth = true;     $mail->username = "xxx";     $mail->password = "yyy"; $mail->port = 25;                $mail->subject = "subject";      $mail->ishtml(true); $mail->body = $message;        $mail->addaddress ($enduser, $enduser_name);                 $mail->send();  

$message html code img src="http://domain.com/logo.png"/

it isn't issue of phpmailer. if receive email , using outlook, outlook block showing image because of security. if using gmail, works fine.


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -