FROM ADDRESS of email is set to SMTP_AUTH_USER
Brought to you by:
alexbally
in Mail.java:64
msg.setFrom(new InternetAddress(SMTP_AUTH_USER));
Yields the following error message from our company SMTP server:
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
There's another configuration property needed for the email account used for sending notifications: FROM ADDRESS
Because not for all systems SMTP_AUTH_USER and FROM_ADDRESS are identically.