Jacson

de.spieleck.util
Class Mailer

java.lang.Object
  extended byde.spieleck.util.Mailer

public class Mailer
extends java.lang.Object

This class provides methods for sending mails

Author:
Patrick Carl

Constructor Summary
Mailer()
           
 
Method Summary
static void sendMail(java.lang.String from, java.lang.String[] to, java.lang.String subject, java.lang.String text, java.lang.String server, int port, java.lang.String user, java.lang.String password)
          sends a message via SMTP with the given settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailer

public Mailer()
Method Detail

sendMail

public static void sendMail(java.lang.String from,
                            java.lang.String[] to,
                            java.lang.String subject,
                            java.lang.String text,
                            java.lang.String server,
                            int port,
                            java.lang.String user,
                            java.lang.String password)
                     throws javax.mail.MessagingException
sends a message via SMTP with the given settings. If user or password are null, no authentification will be used.

Throws:
javax.mail.MessagingException

Spieleck

Copyleft 2002 spieleck.de.