public class AMSendMail extends Object
Constructor and Description |
---|
AMSendMail()
Constructor that grabs its SMTP values from SystemProperties.
|
Modifier and Type | Method and Description |
---|---|
void |
postMail(String[] recipients,
String subject,
String message,
String from)
Posts e-mail messages to users.
|
void |
postMail(String[] recipients,
String subject,
String message,
String from,
String charset)
Posts e-mail messages to users.
|
void |
postMail(String[] recipients,
String subject,
String message,
String from,
String mimeType,
String charset)
Posts e-mail messages to users.
|
void |
postMail(String[] recipients,
String subject,
String message,
String from,
String charset,
String host,
String port,
String user,
String password,
boolean ssl)
Posts e-mail messages to users.
|
void |
postMail(String[] recipients,
String subject,
String message,
String from,
String mimeType,
String charset,
String host,
String port,
String user,
String password,
boolean ssl)
Posts e-mail messages to users.
|
public AMSendMail()
public void postMail(String[] recipients, String subject, String message, String from, String charset) throws javax.mail.MessagingException
recipients
- A String array of e-mail addresses to be sent tosubject
- The e-mail subjectmessage
- The content contained in the e-mailfrom
- The sending e-mail addresscharset
- The charset used in e-mail encodingjavax.mail.MessagingException
- if there is any error in sending e-mailpublic void postMail(String[] recipients, String subject, String message, String from) throws javax.mail.MessagingException
recipients
- A String array of e-mail addresses to be sent tosubject
- The e-mail subjectmessage
- The content contained in the e-mailfrom
- The sending e-mail addressjavax.mail.MessagingException
- if there is any error in sending e-mailpublic void postMail(String[] recipients, String subject, String message, String from, String mimeType, String charset) throws javax.mail.MessagingException
recipients
- A String array of e-mail addresses to be sent tosubject
- The e-mail subjectmessage
- The content contained in the e-mailfrom
- The sending e-mail addressmimeType
- The MIME type of the e-mailcharset
- The charset used in e-mail encodingjavax.mail.MessagingException
- if there is any error in sending e-mailpublic void postMail(String[] recipients, String subject, String message, String from, String charset, String host, String port, String user, String password, boolean ssl) throws javax.mail.MessagingException
recipients
- A String array of e-mail addresses to be sent tosubject
- The e-mail subjectmessage
- The content contained in the e-mailfrom
- The sending e-mail addresscharset
- The charset used in e-mail encodinghost
- The host name to connect to send e-mailport
- The host port to connect to send e-mailuser
- The user name used to authenticate to the hostpassword
- The user password used to authenticate to the hostssl
- A boolean to indicate whether SSL is needed to connect to the hostjavax.mail.MessagingException
- if there is any error in sending e-mailpublic void postMail(String[] recipients, String subject, String message, String from, String mimeType, String charset, String host, String port, String user, String password, boolean ssl) throws javax.mail.MessagingException
recipients
- A String array of e-mail addresses to be sent tosubject
- The e-mail subjectmessage
- The content contained in the e-mailfrom
- The sending e-mail addressmimeType
- The MIME type of the e-mailcharset
- The charset used in e-mail encodinghost
- The host name to connect to send e-mailport
- The host port to connect to send e-mailuser
- The user name used to authenticate to the hostpassword
- The user password used to authenticate to the hostssl
- A boolean to indicate whether SSL is needed to connect to the hostjavax.mail.MessagingException
- if there is any error in sending e-mailCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.