php - Swiftmailer - Outlook doesn't receive any mails -


so i'm trying send out e-mails. send 1 out gmail, , e-mail that's exchange account in outlook.

gmail works perfectly, doesn't work 1 in outlook if put in pictures.

here's code:

$message = swift_message::newinstance('thank registering');                  $img_one = $message->embed(swift_image::frompath('...'));                 $img_two = $message->embed(swift_image::frompath('...'));                  $text = '<html><body>';                 $text .= '<center><img src="' . $img_one . '" alt="image" /></center>';                 $text .= '<br><br>';                 $text .= 'thank submitting personal data.<br>';                 $text .= 'you have registered candidate in finance sector.<br>';                 $text .= '<br>best regards,<br><br>';                 $text .= '<img src="' . $img_two . '" alt="image" /><br>';                 $text .= '</body></html>';                  $transport = swift_smtptransport::newinstance('smtp.host.dk', 587, 'tls')                     ->setusername('x@x.x')                     ->setpassword('***');                  $mailer = swift_mailer::newinstance($transport);                  $message->setfrom(array('sender@sender.dk' => 'sender name'))                     ->setto(array('receiverone@gmail.com', 'receiver@mailthatsonoutlook.dk' => 'receiver name'))                     ->setbody($text, 'text/html');                   $logger = new swift_plugins_loggers_echologger();                 $mailer->registerplugin(new swift_plugins_loggerplugin($logger));                  $result = $mailer->send($message);                  echo $logger->dump(); 

when remove lines img elements, works fine outlook. when don't, nothing happens. log same whether or not.

<< 235 2.7.0 authentication successful  ++ swift_smtptransport started >> mail from:<x@x.dk>  << 250 2.1.0 ok  >> rcpt to:<x@x.com>  << 250 2.1.5 ok  >> rcpt to:<x@x.dk>  << 250 2.1.5 ok  >> data  << 354 end data <cr><lf>.<cr><lf>  >> .  << 250 2.0.0 ok: queued 833ed2a2078b  

i've looked , looked, can't find on this, , i'm out of ideas.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -