org.infoglue.cms.util.mail
Class MailService
java.lang.Object
|
+--org.infoglue.cms.util.mail.MailService
- public class MailService
- extends java.lang.Object
|
Constructor Summary |
MailService(javax.mail.Session session)
Creates a MailServices object and initializes it with the specified mail session. |
|
Method Summary |
void |
send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String content)
|
void |
send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType,
java.lang.String encoding)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailService
public MailService(javax.mail.Session session)
- Creates a MailServices object and initializes it with the specified mail session.
send
public void send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String content)
throws SystemException
- Parameters:
from - the sender of the email.to - the recipient of the email.subject - the subject of the email.content - the body of the email.
- Throws:
SystemException - if the email couldn't be sent due to some mail server exception.
send
public void send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType,
java.lang.String encoding)
throws SystemException
- Parameters:
from - the sender of the email.to - the recipient of the email.subject - the subject of the email.content - the body of the email.
- Throws:
SystemException - if the email couldn't be sent due to some mail server exception.