You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an incorrect password for ```MAIL_PASSWORD``:
org.simplejavamail.mailer.internal.mailsender.MailSenderException: Third party error
[...]
Caused by: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
When using bad credentials:
Log as error.
Log cause as error.
Terminate program.
Unknown SMTP host
When using an invalid SMTP hostname:
simplejavamail:
smtp:
host: smtp.gmail.commmmmm
`
The following exception will ocurr:
org.simplejavamail.mailer.internal.mailsender.MailSenderException: Third party error
[...]
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmaill.com, 587; timeout -1;
[...]
Caused by: java.net.UnknownHostException: smtp.gmaill.com
[...]
Either the host server is down at that moment, or the hostname is incorrect.
First, we should do a test connection when the Mailer object is created. If that test worked and we get this exception later, we can confirm at 99,9% that the server is just down.
Therefore, we should handle as it follows:
When test connecting
The text was updated successfully, but these errors were encountered:
Bad credentials
When using an incorrect password for ```MAIL_PASSWORD``:
When using bad credentials:
Unknown SMTP host
When using an invalid SMTP hostname:
`
The following exception will ocurr:
Either the host server is down at that moment, or the hostname is incorrect.
First, we should do a test connection when the Mailer object is created. If that test worked and we get this exception later, we can confirm at 99,9% that the server is just down.
Therefore, we should handle as it follows:
When test connecting
The text was updated successfully, but these errors were encountered: