Paul Sturrock wrote:What is happening? What do you expect to happen/what is going wrong? Is there any error message? Can you post it if there is?
I was using the following code on my previous server and that was working very well
Now on the new server it displays following error:
*javax.mail.SendFailedException: Invalid Addresses;*
*nested exception is:*
* com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)*
I edited my /var/qmail/control/rcpthosts and inserted my whole domain names but still I am receiving the same error. My network company replied me that previous server was using the open relay but now we have to change the code to send the emails by giving username/pass then I got help with the JavaMail FAQs and written the code above but not working with same error