>Can anybody tell me how to send an email using javamail surpassing the
>server setup in a LAN?
When you use javamail, you specify the domain name and port of an SMTP
server. The most logical thing is to use your own LAN's server, but
you can use anything that will allow you in. Of course, if your LAN
blocks port 25, you're kind of stuck.

Signature
Tim Slattery
Slattery_T@bls.gov
http://members.cox.net/slatteryt
ruds - 07 Apr 2007 06:28 GMT
> When you use javamail, you specify the domain name and port of an SMTP
> server. The most logical thing is to use your own LAN's server, but
[quoted text clipped - 4 lines]
> Tim Slattery
> Slatter...@bls.govhttp://members.cox.net/slatteryt
Does this mean ,I can give name of any machine in LAN as host name and
send mails??
Gordon Beaton - 07 Apr 2007 08:38 GMT
> Does this mean ,I can give name of any machine in LAN as host name
> and send mails??
No. You must send your mail through a machine that:
- runs an SMTP server
- is willing to relay your outgoing mail
The second of these normally restricts you to your LANs (or ISPs) mail
server.
You can also relay through the mail server that corresponds to the
recipient of each mail, but that makes your client unnecessarily
complex, since it needs to do much of the transport job normally done
by the mail server (for example, it would need to determine the
correct recipient server, and handle transient errors properly). I
don't recommend this approach.
/gordon
--
ruds - 08 Apr 2007 06:04 GMT
Is there a way i can bypass my SMTP host and send mail?
Gordon Beaton - 08 Apr 2007 08:46 GMT
> Is there a way i can bypass my SMTP host and send mail?
You can specify any host the meets the two requirements I wrote in my
earlier post. However the *best* and *easiest* solution uses your own
ISPs SMTP host.
/gordon
--