I don't know how you can say that JavaMail is too difficult, this is all
that is required to send a message:
try {
MimeMessage msg = new MimeMessage(session);
Address[] addr = InternetAddress.parse("[EMAIL PROTECTED]");
msg.addFrom(addr);
msg.addRecipients(Message.RecipientType.TO,addr);
msg.setReplyTo(addr);
msg.setSubject("This is a test message");
msg.setSentDate(new Date());
msg.setText("Testing, 1, 2, 3, Testing");
Transport.send(msg);
} catch(MessagingException x) {
System.err.println("Exception while Sending Message");
x.printStackTrace(System.err);
}
(*Chris*)
----- Original Message -----
From: Won, Taewoong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 12, 1999 11:54 PM
Subject: Servlet
> My servlet need to send e-mail message via remote SMTP servler. The
environment
> is Solaris 2.6, ServletExec 2.0, Netscape Enterprise Server with Sun JDK
1.2
> VM. At first I looked into JavaMail API, but it is too complicated for our
> simple needs. Are there any other simple SMTP-repackage available that I
can
> use with minimum modification?
>
> Won, Taewoong
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html