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

Reply via email to