Reputation: 11
I used SMTP protocol for sending email in my system.The system is developed with Codeigniter.in the system two types of email sending functionality, one is from codeigniter Email libraries and other is from swift mailer.In codeigniter it is working but in swift mailer an authentication failure message is shown.
Both functions use same login details.The port used is 25.
Upvotes: 1
Views: 12019
Reputation: 758
Give a try with this gmail smtp
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl')
->setUsername('YOUR_GMAIL_ID')
->setPassword('YOUR_GMAIL_PASSWORD') ;
If it works with this than I think your hosting provider not giving smtp service to you so, you need to contact your hosting provider.
Upvotes: 0