de.spieleck.util
Class Mailer
java.lang.Object
de.spieleck.util.Mailer
- public class Mailer
- extends java.lang.Object
This class provides methods for sending mails
- Author:
- Patrick Carl
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 |
Mailer
public Mailer()
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
Copyleft 2002 spieleck.de.