you can download mail.jar and activation.jar and set it inyour classpath.
then you can start using javamail.
you can get many smaple programs from sun site.
Regards
Ramesh Kesavanarayanan
* [EMAIL PROTECTED]
-----Original Message-----
From: Jan Aren� [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:09 PM
To: [EMAIL PROTECTED]
Subject: SV: JavaMail
I don't know. I took the code from a JavaGuru answer... that's all I know...
It worked and then I didn't have any reason to change it...
Is JavaMail API something I need to install or is it part of the default
installation?
Please send me some tips on the API
//Jan
-----Ursprungligt meddelande-----
Fr�n: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]F�r Emmanuel Eze
Skickat: den 20 augusti 2002 09:33
Till: [EMAIL PROTECTED]
�mne: Re: JavaMail
why don't u use JavaMail API?
-----Original Message-----
From: Jan Aren� [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 10:07 AM
To: [EMAIL PROTECTED]
Subject: JavaMail
Hi
I have a function that sends a JavaMail.
(import sun.net.smtp.SmtpClient;)
SmtpClient client = new SmtpClient(mailServer);
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: " + subject);
message.println(mymessage);
message.println();
message.println();
client.closeServer();
But since I am suppost to use our SmtpServer and out clients mailadress,
this is a problem. My SMTPserver don't allow anyone to use it to send a
email, only the ones that have an account.
What I want to do is to either fix so I can email from the right email OR
add an replyadress. How do I do any of this?
// Jan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com