jenkins error com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticat

1,081 views
Skip to first unread message

Sv

unread,
Sep 22, 2018, 11:45:26 AM9/22/18
to Selenium Users
I am getting below error while sending test mail through outlook.
ssl is disabled.
while i am sending mail through gmail its ok but not able to send mail through outlook because of below error :
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MA1PR0101CA0012.INDPRD01.PROD.OUTLOOK.COM]

i have configured:
smtp server
port: 587 and also checked 28
 User Name
password also configured.

while searching through google i saw to set;

edit file: "/etc/default/jenkins"

sudo vim /etc/default/jenkins

add the line:

JAVA_ARGS="-Djava.awt.headless=true -Dmail.smtp.starttls.enable=true"  but i am not have etc in my program file/jenkins.
i assume if ssl is disabled then  this is not the error.

please help urgently.

Reply all
Reply to author
Forward
0 new messages