Package org.pentaho.platform.util
Class Emailer
java.lang.Object
org.pentaho.platform.util.Emailer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.Authenticator
protected javax.mail.Session
getSmtpSession
(boolean authenticate) boolean
send()
void
setAttachment
(InputStream attachment) void
setAttachmentMimeType
(String mimeType) void
setAttachmentName
(String attachmentName) void
setAuthenticator
(javax.mail.Authenticator authenticator) void
setAuthMechanism
(String authMechanism) void
void
void
void
void
setFromName
(String fromName) void
setQuitWait
(boolean quitWait) void
setSmtpHost
(String smtpHost) void
setSmtpPort
(int port) void
setStartTLS
(boolean startTLS) void
setSubject
(String subject) void
void
setTransportProtocol
(String protocol) boolean
setup()
void
setUseAuthentication
(boolean useAuthentication) void
setUseSSL
(boolean useSSL)
-
Constructor Details
-
Emailer
public Emailer() -
Emailer
public Emailer(org.pentaho.platform.api.email.IEmailService emailService)
-
-
Method Details
-
setTo
-
setCc
-
setBcc
-
setSubject
-
getSubject
-
setFrom
-
setFromName
-
setUseAuthentication
public void setUseAuthentication(boolean useAuthentication) -
setSmtpHost
-
setSmtpPort
public void setSmtpPort(int port) -
setTransportProtocol
-
setUseSSL
public void setUseSSL(boolean useSSL) -
setStartTLS
public void setStartTLS(boolean startTLS) -
setQuitWait
public void setQuitWait(boolean quitWait) -
setAttachment
-
setAttachmentName
-
getAttachmentName
-
setAttachmentMimeType
-
getAuthenticator
public javax.mail.Authenticator getAuthenticator() -
setAuthenticator
public void setAuthenticator(javax.mail.Authenticator authenticator) -
setBody
-
getEmailFromName
-
getProperties
-
getAuthMechanism
-
setAuthMechanism
-
setup
public boolean setup() -
send
public boolean send() -
getSmtpSession
protected javax.mail.Session getSmtpSession(boolean authenticate)
-