Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

mail through a server

Thread view: 
Nikhil - 03 Apr 2007 20:00 GMT
Can anybody tell me how to send an email using javamail surpassing the
server setup in a LAN?
Tim Slattery - 03 Apr 2007 21:12 GMT
>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

--


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.