Seong Y. Kim <[EMAIL PROTECTED]> wrote:
>I need to write a servlet which sends an email msg to multi-users.  I am
>thinking of sending them one by one using sun.net.smtp.SmtpClient object.
The
>fact is that I am new in sending email stuff.  Is this a good  idea?  If
yes,
>can you tell me how to do it?  If no, can you tell me the better way to do?


I would suggest using EasyMail. It's a very easy-to-use package for sending
mail. It's completely free, and the source is available. You can get it
from:

  <http://www.rule-of-eight.com/components/easymail/>


The code would look something like this:

  mail = MailPack.newEmailMessage( "smtpserver.itt.com" );
  mail.setSender( "[EMAIL PROTECTED]" );
  mail.addRecipient( "[EMAIL PROTECTED]" );
  mail.addRecipient( "[EMAIL PROTECTED]" );
  mail.addRecipient( "[EMAIL PROTECTED]" );
  mail.addRecipient( "[EMAIL PROTECTED]" );
  mail.setSubject( "I am the walrus" );
  mail.setContent( "Coo coo cachoo." );
  mail.send();


Erik

___________________________________________________________________________
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

Reply via email to