File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes problems with sending emails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problems with sending emails " Watch "problems with sending emails " New topic

problems with sending emails

krishnan rajah

Joined: Oct 06, 2004
Posts: 3

I have written an application using java mail api. When i try to send email i get SendFailedException Invalid Addresses; nested exception is: class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for .

I understand that the server is not allowing relaying. I need to understand one thing. My system is in the same network as the smtp server.My administrator says that all messages from this address range is allowed to send mails.but i still get this problem. my application is running on tomcat5 web server and my company uses exchange server for providing smtp services. please give me solution.

thanks for your help

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

krishnan , please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic in the Other Java APIs forum where the post you made to the JSP forum has been moved.

[Asking smart questions] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: problems with sending emails
jQuery in Action, 3rd edition