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
Post a Comment