com.taggercat.util
Class SendMail
java.lang.Object
com.taggercat.util.SendMail
public class SendMail
- extends java.lang.Object
General e-mail utilities.
-
|
Method Summary |
static void |
sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
|
static void |
sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password)
Sends an email message. |
static void |
sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password,
boolean debug,
boolean verbose,
java.lang.String mailer)
Sends an email message. |
static void |
sendMessageAsync(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password)
Sends an email message on its own thread. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendMail
public SendMail()
sendMessageAsync
public static void sendMessageAsync(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password)
throws java.lang.Exception
- Sends an email message on its own thread. Any errors are written to the
error log.
- Throws:
java.lang.Exception- Parameters:
to - the address to send tofrom - the from addresssubject - the subject of the emailcc - the cc list (optional)bcc - the bcc list (optional)mailhost - the email server hostnamemessage - the message textuser - the email server user name to authenticate withpassword - the user password to authenticate with
sendMessage
public static void sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password)
throws java.lang.Exception
- Sends an email message.
- Throws:
java.lang.Exception- Parameters:
to - the address to send tofrom - the from addresssubject - the subject of the emailcc - the cc list (optional)bcc - the bcc list (optional)mailhost - the email server hostnamemessage - the message textuser - the email server user name to authenticate withpassword - the user password to authenticate with
sendMessage
public static void sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendMessage
public static void sendMessage(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String cc,
java.lang.String bcc,
java.lang.String mailhost,
java.lang.String message,
java.lang.String user,
java.lang.String password,
boolean debug,
boolean verbose,
java.lang.String mailer)
throws java.lang.Exception
- Sends an email message.
- Throws:
java.lang.Exception- Parameters:
to - the address to send tofrom - the from addresssubject - the subject of the emailcc - the cc list (optional)bcc - the bcc list (optional)mailhost - the email server hostnamemessage - the message textuser - the email server user name to authenticate withpassword - the user password to authenticate withdebug - set true to enable debug messagesverbose - set true to have verbose messages included in the logmailer - the name set for the mailer