Bahri Gökcan
Bahri Gökcan

Reputation: 1010

Sending mail using gmail server in play framewrok

I am trying to send mail using gmail server in my play app but it gives time out. I configured it as stated in the play documentation. my configuration is

mail.smtp.host=smtp.gmail.com
mail.smtp.user=******* 
mail.smtp.pass=*******
mail.smtp.channel=ssl.

It was sending successfully a couple of days ago. Is there anyone who knows the solution?

Upvotes: 0

Views: 915

Answers (1)

Alexander Ponomarenko
Alexander Ponomarenko

Reputation: 559

  • Are you using google apps for domain? Did you specify your domain in user name?
  • Remove "." from "ssl.".
  • Verify that you don't have "mail.smtp=mock" anywhere in your conf file.
  • Verify that you're not overriding mail configuration somewhere later in file.
  • Try to login manually with your account, check if you can send email, maybe you sent too - many emails and you're temporary banned by gmail smtp.

Following works perfectly for me:

mail.smtp.host=smtp.gmail.com
mail.smtp.user=***@yourdomain.com
mail.smtp.pass=***
mail.smtp.channel=ssl

Upvotes: 2

Related Questions