cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while sending mail

Former Member
0 Kudos

He Gurus,

I want to trigger a mail to the end-user when some condition is true. I'm using JavaMail API's for the same. When I tried it using my smtp address, it works fine. But When I replaced the mine smtp address to the client smtp address I got following error:

com.sun.mail.smtp.SMTPSendFailedException: 550 5.0.0 Access Denied.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)

at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)

at javax.mail.Transport.send0(Transport.java:169)

at javax.mail.Transport.send(Transport.java:98)

at java_mail.MyMailService.main(MyMailService.java:72)

Can anyone throw some light on this error? Is there any other kind of configuration or credentials are required for sending the mail.

Regards

Abhinav Sharma

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi,

Usually you need to enter the SAP Web Application Server IP address to the "allowed" computers in your SMTP server (this has nothing to do with the client machine because the WAS sends mail for all users through SMTP).

Also, make sure that the connection between the WAS and SMTP is not blocked (by firewall).

Regards,

Omri

Abhinav_Sharma
Contributor
0 Kudos

H Omri,

Thanks for your reply. I'll check this and confirm.

Reards,

Abhinav