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

[1267 byte] By [onlysammya] at [2007-9-28 11:15:18]
# 1

Java Mail does not provide SMTP functionality. As a result you have to specify a STMP server to use to send emails.

If you are insterested in obtaining a commercial licese for using an email software module we developed, please contact me. The highlights are:

- Can send email without specifying a STMP server (SMTP)

- automatic search for destination STMP server for a given name (for example, yahoo.com)

- Can construct/read emails in Java object and XML format (POP3, XML)

- email encoding algorithm is availalbe (for example, Base64, Quoted-Printable, etc.)

- can talk to news groups and fetch news message (NNTP)

qizhi@sinotar.com

sinotara at 2007-7-12 1:42:26 > top of Java-index,Other Topics,Patterns & OO Design...