Reputation: 41
I'm trying send email using Apache James, as server, for external account and I'm receiving the following exception :
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Requested action not taken: relaying denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686)
... 6 more
Somebody please help me to resolve the issue
Thanks in advance
Alisson
Upvotes: 0
Views: 2975
Reputation: 31
You can not send an email to external mail addresses, say for instance your gmail id, unless and until you have a static IP. The SMTP of the server has the configuration to stop emails from dynamic IPs.
Upvotes: 1
Reputation: 8884
Sounds like you didn't authenticate to the SMTP server. Show some code if you need more help.
Upvotes: 1