Khadim
Khadim

Reputation: 13

Send email with Swiftmailer in Symfony2

Hi I'm using Swiftmailer for sending email in my project symfony2 for the contact form. When I try it in dev environment it works fine, but in In prod I got this error:

Fatal error: Uncaught exception 'Swift_TransportException' 
with message ' in C:\wamp\www\saaytu_symfony\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php on line 386

Swift_TransportException: Expected response code 250 but got code "530", 
with message "530-5.5.1 Authentication Required. 
Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 lo18sm27016542wic.1 - gsmtp "
in C:\wamp\www\saaytu_symfony\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php on line 386

Please help. Thank you.

Upvotes: 1

Views: 1140

Answers (1)

ghostika
ghostika

Reputation: 1503

Mark this then:

Are you sure, that you use the same PARAMETERS.YML for dev/prod? Probably different credentials in parameters.yml.

Upvotes: 1

Related Questions