Java Mail exception while sending

Hello,

I am trying to send a mail using javax.mail.Transport class, with it's send() method. The 'to' address is a valid address while the 'from' address is not a valid one.

Occasionally, it gives me a javax.mail.SendFailedException for the invalid 'FROM' address even though the 'TO' address is valid. I am not able to determine under what situations does it check whether the from address is a valid one.

Can anyone give me information related to this?

Thanks

[512 byte] By [shyam619] at [2007-9-26 1:54:20]
# 1
Try telneting to the SMTP server your self and see whats going on. Sometimes some SMTP servers require that the FROM address be a current user or the correct domain. Thats the first thing that comes to mind....
atehrani_java at 2007-6-29 3:06:39 > top of Java-index,Archived Forums,Java Programming...