Package com.webmethods.rtl.mail.api
Interface IMailUtil
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
NIS e-mail propertiesstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
This is the default environment variable for the java.mail package:mail.smtp.host
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
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
-
Method Summary
Modifier and TypeMethodDescriptiongetBlankMessage
(Session customSession) returns a new message to be filled in with the custom SessiongetEmailProperty
(String name) getNewSession
(String smtpHostServer) If you need create a new session, use thisgetSession
(String smtpHostServer) If you need the session, here you govoid
sends email with the text defaulting as text/html and the default sessionvoid
sends email with the text as the given contentType and the default sessionvoid
sendMail
(String to, String cc, String from, String subject, String text, String contentType, Session customSession) sends email with the content type and custom sessionvoid
updateConfig
(Map<String, Object> props) Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Field Details
-
SYSTEM_SMTP_HOST
This is the default environment variable for the java.mail package:mail.smtp.host
- See Also:
-
SYSTEM_SMTP_PORT
- See Also:
-
SYSTEM_SMTP_PROTOCOL
- See Also:
-
DEFAULT_SMTP_PROTOCOL_VALUE
- See Also:
-
SYSTEM_SMTP_USERNAME
- See Also:
-
SYSTEM_SMTP_PASSWORD
- See Also:
-
SYSTEM_SMTP_TLS_ENABLED
- See Also:
-
SYSTEM_MAIL_DEBUG
- See Also:
-
SYSTEM_SMTP_CONNECTION_TIMEOUT
- See Also:
-
SYSTEM_SMTP_TIMEOUT
- See Also:
-
SYSTEM_SMTP_OAUTH2_CLIENT_ID
- See Also:
-
SYSTEM_SMTP_OAUTH2_CLIENT_SECRET
- See Also:
-
SYSTEM_SMTP_OAUTH2_TOKEN_URL
- See Also:
-
SYSTEM_SMTP_TLS_REQUIRED
- See Also:
-
SYSTEM_SMTP_AUTH_MECHANISMS
- See Also:
-
SYSTEM_SMTP_AUTH_LOGIN_DISABLE
- See Also:
-
SYSTEM_SMTP_AUTH_PLAIN_DISABLE
- See Also:
-
SYSTEM_SMTP_AUTH_TYPE
- See Also:
-
MS_XOAUTH_SCOPE
- See Also:
-
MS_GRAPH_ENDPOINT
- See Also:
-
MS_GRAPH_OAUTH_SCOPE
- See Also:
-
AUTH_TYPE_OAUTH
- See Also:
-
AUTH_TYPE_REST
- See Also:
-
AUTH_TYPE_BASIC
- See Also:
-
DCS_EMAIL_FROM
NIS e-mail properties- See Also:
-
DCS_EMAIL_ADDRESS
- See Also:
-
ADMIN_EMAIL_ADDRESS
- See Also:
-
-
Method Details
-
updateConfig
- Throws:
PortalException
-
getSession
If you need the session, here you go -
getNewSession
If you need create a new session, use this -
sendMail
void sendMail(String to, String cc, String from, String subject, String text) throws MessagingException sends email with the text defaulting as text/html and the default session- Throws:
MessagingException
-
sendMail
void sendMail(String to, String cc, String from, String subject, String text, String contentType) throws MessagingException sends email with the text as the given contentType and the default session- Throws:
MessagingException
-
sendMail
void sendMail(String to, String cc, String from, String subject, String text, String contentType, Session customSession) throws MessagingException sends email with the content type and custom session- Throws:
MessagingException
-
getBlankMessage
returns a new message to be filled in with the custom Session- Throws:
MessagingException
-
getEmailProperty
-