In dev I used gmails outgoing SMTP server for the Grails Mail Plugin and everything worked fine. Now, in test I'm getting MailAuthenticationException as the SMTP is setup with no authentication;
... Caused by: org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException
...Caused by: javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:319) ...
Is the fix as simple as update the Config.groovy file and set the mail prop (mail.smtp.auth) to false instead of true?
grails.mail.host = 192.168.1.100
grails.mail.port = 465
grails.mail.props =["mail.smtp.auth":"false",
"mail.smtp.socketFactory.port":"465",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
Also, if I change the outgoing mail port, do I have to update the socketfactory.port to match?
Thanks.