wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes please help!urgent...on javamail API. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "please help!urgent...on javamail API." Watch "please help!urgent...on javamail API." New topic
Author

please help!urgent...on javamail API.

pradeep arum
Ranch Hand

Joined: Oct 01, 2003
Posts: 130
hi all ,
my question here is i want to send an email from a java application using JavaMail API, because i am setting the protocol type here in properties and in the transport type for sending the message, will it go only to the servers that support smtp, i want to send e-mail to all the systems what ever they use, yahoo ,hotmail etc.

please help.
thanks

//Set the host smtp address
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.jcom.net");

// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);

Transport transport = session.getTransport("smtp");


SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
I guess the JavaMail API won't help you then, huh? Unless you'd like to write an extension library specifically to interface with Yahoo, Hotmail, etc.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Navin T
Greenhorn

Joined: Jul 12, 2002
Posts: 4
I thought that there was only "SMTP" protocol for sending mails & "POP3" & "IMAP" for receiving mails.

Are there any other protocols for receiving mails. Let me know


SCJP, SCWCD, SCBCD
 
 
subject: please help!urgent...on javamail API.