public interface IMailUtil extends IComponentProvider
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_EMAIL_ADDRESS |
static String |
DCS_EMAIL_ADDRESS |
static String |
DCS_EMAIL_FROM
NIS e-mail properties
|
static String |
DEFAULT_SMTP_PROTOCOL_VALUE |
static String |
SYSTEM_MAIL_DEBUG |
static String |
SYSTEM_SMTP_CONNECTION_TIMEOUT |
static String |
SYSTEM_SMTP_HOST
This is the default environment variable for the java.mail package:
mail.smtp.host |
static String |
SYSTEM_SMTP_PASSWORD |
static String |
SYSTEM_SMTP_PORT |
static String |
SYSTEM_SMTP_PROTOCOL |
static String |
SYSTEM_SMTP_TIMEOUT |
static String |
SYSTEM_SMTP_TLS_ENABLED |
static String |
SYSTEM_SMTP_USERNAME |
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
Message |
getBlankMessage(Session customSession)
returns a new message to be filled in with the custom Session
|
String |
getEmailProperty(String name) |
Session |
getNewSession(String smtpHostServer)
If you need create a new session, use this
|
Session |
getSession(String smtpHostServer)
If you need the session, here you go
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text)
sends email with the text defaulting as text/html and the default session
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text,
String contentType)
sends email with the text as the given contentType and the default session
|
void |
sendMail(String to,
String cc,
String from,
String subject,
String text,
String contentType,
Session customSession)
sends email with the content type and custom session
|
void |
updateConfig(Map<String,Object> props) |
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
static final String SYSTEM_SMTP_HOST
mail.smtp.host
static final String SYSTEM_SMTP_PORT
static final String SYSTEM_SMTP_PROTOCOL
static final String DEFAULT_SMTP_PROTOCOL_VALUE
static final String SYSTEM_SMTP_USERNAME
static final String SYSTEM_SMTP_PASSWORD
static final String SYSTEM_SMTP_TLS_ENABLED
static final String SYSTEM_MAIL_DEBUG
static final String SYSTEM_SMTP_CONNECTION_TIMEOUT
static final String SYSTEM_SMTP_TIMEOUT
static final String DCS_EMAIL_FROM
static final String DCS_EMAIL_ADDRESS
static final String ADMIN_EMAIL_ADDRESS
void updateConfig(Map<String,Object> props) throws PortalException
PortalException
Session getNewSession(String smtpHostServer)
void sendMail(String to, String cc, String from, String subject, String text) throws MessagingException
MessagingException
void sendMail(String to, String cc, String from, String subject, String text, String contentType) throws MessagingException
MessagingException
void sendMail(String to, String cc, String from, String subject, String text, String contentType, Session customSession) throws MessagingException
MessagingException
Message getBlankMessage(Session customSession) throws MessagingException
MessagingException