Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to send Email with outlook or gmail config in Play 2.5 and mailer 5.0 plugin #115
Comments
|
Could you try smtp.gmail.com:587 with TLS ? Are you behind a corporate proxy ? |
|
Tried with that as well with following settings:
and still getting exceptions:
Nope no proxy at all. |
|
Are you using |
|
nah i am using the default JRE that i downloaded from the official site. So i didn't even customize any kind of arguments for JVM. Neither i have configured a custom trust store. I searched over the internet and someone suggested to put |
|
Ok thanks for the information provided. |
|
No problem sure here are my version and other details details: Thanks for the the quick input! |
|
Dayummm You won't believe it i was thinking and just hit in my mind that there could be one more thing that can cause trouble that is my antivirus blocking smtp requests. Guess what i was right. I deactivated my antivirus protection and it works like a charm! Thanks @Mogztter agian for quick replies :). Actually i think it's better to add this in the README file for windows users that if mailer is not working try closing any antivirus shields that might can lead to block smtp requests. Just for future reference for someone who might be wondering what were my working app conf for google smtp using TLS then it is as follows:
|
|
I'm glad you found the root cause.
Yes, that's a good idea! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

I also have been playing with mailer plugin but still i am having problem since 2 days i am stuck on just this simple task. Well reading other topics seems like other people are also have problems. So like them i also followed the same config as told in the installation in play-mailer page still not able to send any email. Here is my app configuration:
play.mailer { host=smtp.office365.com port=587 ssl=false tls=true user="l************y@outlook.com" password="**************" debug=yes }MailService Class wrapper (omitted importing libs just to keep the code minimal):
My controller action in the play framework:
and i getting these exceptions:
When i go for gmail config then my app config looks like this:
play.mailer { host="smtp.gmail.com" port=465 ssl=yes user="*****@gmail.com" password="******" debug=yes timeout=60000 connectiontimeout=60000 }And exceptions:
Also i want to confirm something as i am using play without any SSL config so right now on my dev server i am accessing it locally on HTTP rather HTTPS. Does that matter that i have to be on HTTPS protocol to use this mailer plugin?