Using multiple SMTP servers but a single Internet Service Provider(ISP)
Hello Sir,
I am working on an Enterprise Java Bean Application running on J2EE application server and use JavaMail API to send Emails throu' the application....
In the J2EE Deploytool the SMTP server is set to "smtp.roltanet.com" provided by ISP....and by connecting to Roltanet we are able to send emails successfully...
But the problem is.. if i set the SMTP server other than Roltanet,then i get the following error....
"The exception is javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;nested exception is:
javax.mail.SendFailedException: 553 sorry, that domain isn't allowed to
be relayed thru this MTA (#5.7.1)"
But,I think there is a way in which,even though u are connected to say,Roltanet and use say, VSNL's SMTP server and also have an account on VSNL then, by supplying the VSNL's user id and password ...
VSNL's SMTP will allow to send emails...even though it is connected to the internet throu Roltanet....
Is there really a way through it can be done...throu Code or something....
Can any body help me out with the issue...any suggestion or code samples will suffice....
Thanks
Sam

