Package org.pentaho.platform.util
Class Emailer
- java.lang.Object
-
- org.pentaho.platform.util.Emailer
-
public class Emailer extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttachmentName()
javax.mail.Authenticator
getAuthenticator()
String
getAuthMechanism()
String
getEmailFromName()
Properties
getProperties()
protected javax.mail.Session
getSmtpSession(boolean authenticate)
String
getSubject()
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
setBcc(String bcc)
void
setBody(String body)
void
setCc(String cc)
void
setFrom(String from)
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
setTo(String to)
void
setTransportProtocol(String protocol)
boolean
setup()
void
setUseAuthentication(boolean useAuthentication)
void
setUseSSL(boolean useSSL)
-
-
-
Method Detail
-
setTo
public void setTo(String to)
-
setCc
public void setCc(String cc)
-
setBcc
public void setBcc(String bcc)
-
setSubject
public void setSubject(String subject)
-
getSubject
public String getSubject()
-
setFrom
public void setFrom(String from)
-
setFromName
public void setFromName(String fromName)
-
setUseAuthentication
public void setUseAuthentication(boolean useAuthentication)
-
setSmtpHost
public void setSmtpHost(String smtpHost)
-
setSmtpPort
public void setSmtpPort(int port)
-
setTransportProtocol
public void setTransportProtocol(String protocol)
-
setUseSSL
public void setUseSSL(boolean useSSL)
-
setStartTLS
public void setStartTLS(boolean startTLS)
-
setQuitWait
public void setQuitWait(boolean quitWait)
-
setAttachment
public void setAttachment(InputStream attachment)
-
setAttachmentName
public void setAttachmentName(String attachmentName)
-
getAttachmentName
public String getAttachmentName()
-
setAttachmentMimeType
public void setAttachmentMimeType(String mimeType)
-
getAuthenticator
public javax.mail.Authenticator getAuthenticator()
-
setAuthenticator
public void setAuthenticator(javax.mail.Authenticator authenticator)
-
setBody
public void setBody(String body)
-
getEmailFromName
public String getEmailFromName()
-
getProperties
public Properties getProperties()
-
getAuthMechanism
public String getAuthMechanism()
-
setAuthMechanism
public void setAuthMechanism(String authMechanism)
-
setup
public boolean setup()
-
send
public boolean send()
-
getSmtpSession
protected javax.mail.Session getSmtpSession(boolean authenticate)
-
-