The Artima Developer Community
Sponsored Link

Java Answers Forum
Java mail questions.......need help

1 reply on 1 page. Most recent reply: May 3, 2003 5:04 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
jeff

Posts: 7
Nickname: jeffcmd
Registered: Apr, 2003

Java mail questions.......need help Posted: Apr 25, 2003 6:17 PM
Reply to this message Reply
Advertisement
Hi,

The code shown below is part of a email class i came across. Can anyone explain to me what are Properties, mail session and MimeMessage? I am a beginner myself and have some trouble understanding this. Any help is appreciated. Thanks.


Properties props = System.getProperties();
props.put("mail.smtp.host", localhost);
props.put("mail.transport.protocol","smtp");

Session session = Session.getDefaultInstance(props, null);


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Java mail questions.......need help Posted: May 3, 2003 5:04 PM
Reply to this message Reply
The best thing for you to do is go to the java.sun.com web site and download the latest javamail implementation.

You have to also download the JavaBeans Activation Framework extension or JAF (javax.activation).

JavaMail comes with some very easy code examples.

Until you have the java mail.jar and activation.jar set up in your classpath, none of it is going to compile or run or make any sense.

Go to http://java.sun.com/products/javamail/index.html

Flat View: This topic has 1 reply on 1 page
Topic: Sets Previous Topic   Next Topic Topic: problem with setVisible(false);

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use