문제

I'm trying to use PHP Swiftmail (Laravel Package) but it keeps throwing this stupid exception:

Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 220 but got code "", with message "+OK The Microsoft Exchange POP3 service is ready. [QwBPADEAUABSADAANwBDAEEAMAAxADMALgBuAGEAbQBwAHIAZAAwADcALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==]"

Anyone come accross this and know how to fix it?

regards

도움이 되었습니까?

해결책

You appear to be connecting on the wrong port. I am able to send via Office 365 using:

$transport = Swift_SmtpTransport::newInstance('smtp.office365.com', 587, 'tls')
              ->setUsername($emailUsername)
              ->setPassword($emailPass)
              ;

Obviously you would need to use the appropriate variables for username and password.

I do encounter regular 'submission rate exceeded' errors though even while using the throttler plugin set at 6.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top