-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable 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! |
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:
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:
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?
The text was updated successfully, but these errors were encountered: