public class MailParams
extends Object
implements Serializable
Mailer
methods.Modifier and Type | Field and Description |
---|---|
static String |
BCC_PROP
The BCC PROPERTY.
|
static String |
CC_PROP
The CC PROPERTY.
|
static String |
DEF_MAILER
The Constant DEF_MAILER.
|
static String |
FILE_PROP
The FILE PROPERTY.
|
static String |
FOLDER_PROP
The FOLDER PROPERTY.
|
static String |
FROM_PROP
The FROM PROPERTY.
|
static String |
MAIL_HOST_PROP
The MAIL HOST PROPERTY.
|
static String |
MAIL_PASSWORD_PROP
The MAIL PASSWORD PROPERTY.
|
static String |
MAIL_PORT_PROP
The MAIL PORT PROPERTY.
|
static String |
MAIL_PROTOCOL_PROP
The MAIL PROTOCOL PROPERTY.
|
static String |
MAIL_USER_PROP
The MAIL USER PROPERTY.
|
static String |
MAILER_PROP
The MAILER PROPERTY.
|
static String |
MESSAGE_PROP
The MESSAGE PROPERTY.
|
static String |
PROPERTIES_PROP
The PROPERTIES PROPERTY.
|
static String |
STORE_HOST_PROP
The STORE HOST PROPERTY.
|
static String |
STORE_PASSWORD_PROP
The STORE PASSWORD PROPERTY.
|
static String |
STORE_PROTOCOL_PROP
The STORE PROTOCOL PROPERTY.
|
static String |
STORE_USER_PROP
The STORE USER PROPERTY.
|
static String |
SUBJECT_PROP
The SUBJECT PROPERTY.
|
static String |
TO_PROP
The TO PROPERTY.
|
static String |
URL_PROP
The URL PROPERTY.
|
Constructor and Description |
---|
MailParams()
Instantiates a new instance of the MailParams.
|
MailParams(String to,
String subject,
String from,
String cc,
String bcc,
String message,
String mailPtotocol,
String mailHost,
String mailPort,
String mailUser,
String mailPassword,
String url,
String mailer,
String file,
String storeProtocol,
String storeHost,
String storeUser,
String storePassword,
String folder,
String props,
String contentType,
String header,
String footer)
Instantiates a new instance of the MailParams.
|
Modifier and Type | Method and Description |
---|---|
String |
getBcc()
Gets the bcc.
|
String |
getCc()
Gets the cc.
|
String |
getContentType()
Gets the content type.
|
String |
getFile()
Gets the file name to attach.
|
String |
getFolder()
Gets the name of folder in which to record mail.
|
String |
getFooter()
Gets the footer.
|
String |
getFrom()
Gets the from.
|
String |
getHeader()
Gets the header.
|
String |
getMailer()
Gets the mailer.
|
String |
getMailHost()
Gets the mail host.
|
String |
getMailPassword()
Gets the mail user.
|
String |
getMailPort()
Gets the mail port.
|
String |
getMailProtocol()
Gets the mail protocol.
|
String |
getMailUser()
Gets the mail user.
|
String |
getMessage()
Gets the message.
|
Properties |
getProperties()
Gets the properties.
|
String |
getStoreHost()
Gets the store host.
|
String |
getStorePassword()
Gets the store password.
|
String |
getStoreProtocol()
Gets the store protocol.
|
String |
getStoreUser()
Gets the store user.
|
String |
getSubject()
Gets the subject.
|
String |
getTo()
Gets the to.
|
String |
getUrl()
Gets the url.
|
void |
init(Map<String,String> props)
Initializes itself using given properties.
|
void |
setBcc(String value)
Sets the bcc.
|
void |
setCc(String value)
Sets the cc.
|
void |
setContentType(String contentType)
Sets the content type.
|
void |
setFile(String value)
Sets the file name to attach.
|
void |
setFolder(String value)
Sets the name of folder in which to record mail.
|
void |
setFooter(String footer)
Sets the footer.
|
void |
setFrom(String value)
Sets the from.
|
void |
setHeader(String header)
Sets the header.
|
void |
setMailer(String value)
Sets the mailer.
|
void |
setMailHost(String value)
Sets the mail host.
|
void |
setMailPassword(String value)
Sets the mail password.
|
void |
setMailPort(String value)
Sets the mail port.
|
void |
setMailUser(String value)
Sets the mail user.
|
void |
setMessage(String value)
Sets the message to send.
|
void |
setPassword(String value)
Sets the password.
|
void |
setProperties(Properties props)
Sets the properties.
|
void |
setProperties(String props)
Sets the properties.
|
void |
setProtocol(String value)
Sets the protocol.
|
void |
setStoreHost(String value)
Sets the store host.
|
void |
setSubject(String value)
Sets the subject.
|
void |
setTo(String value)
Sets the to.
|
void |
setUrl(String value)
Sets the url.
|
void |
setUser(String value)
Sets the user.
|
public static final String TO_PROP
public static final String SUBJECT_PROP
public static final String FROM_PROP
public static final String CC_PROP
public static final String BCC_PROP
public static final String URL_PROP
public static final String MAIL_PROTOCOL_PROP
public static final String MAIL_HOST_PROP
public static final String MAIL_PORT_PROP
public static final String MAIL_USER_PROP
public static final String MAIL_PASSWORD_PROP
public static final String MAILER_PROP
public static final String FILE_PROP
public static final String STORE_PROTOCOL_PROP
public static final String STORE_HOST_PROP
public static final String STORE_USER_PROP
public static final String STORE_PASSWORD_PROP
public static final String FOLDER_PROP
public static final String MESSAGE_PROP
public static final String PROPERTIES_PROP
public static final String DEF_MAILER
public MailParams()
public MailParams(String to, String subject, String from, String cc, String bcc, String message, String mailPtotocol, String mailHost, String mailPort, String mailUser, String mailPassword, String url, String mailer, String file, String storeProtocol, String storeHost, String storeUser, String storePassword, String folder, String props, String contentType, String header, String footer)
to
- the tosubject
- the subjectfrom
- the fromcc
- the ccbcc
- the bccmessage
- the messagemailPtotocol
- the mail ptotocolmailHost
- the mail hostmailPort
- the mail portmailUser
- the mail usermailPassword
- the mail passwordurl
- the urlmailer
- the mailerfile
- the filestoreProtocol
- the store protocolstoreHost
- the store hoststoreUser
- the store userstorePassword
- the store passwordfolder
- the folderprops
- the propscontentType
- the content typeheader
- the headerfooter
- the footerpublic String getBcc()
public String getCc()
public String getFile()
public String getFolder()
public String getFrom()
public String getMailer()
public String getMailHost()
public String getMailPassword()
public String getMailPort()
public String getMailProtocol()
public String getMailUser()
public String getMessage()
public Properties getProperties()
public String getStoreHost()
public String getStorePassword()
public String getStoreProtocol()
public String getStoreUser()
public String getSubject()
public String getTo()
public String getUrl()
public void init(Map<String,String> props)
props
- the propertiespublic void setBcc(String value)
value
- the new bccpublic void setCc(String value)
value
- the new ccpublic void setFile(String value)
value
- the new file name to attachpublic void setFolder(String value)
value
- the new name of folder in which to record mailpublic void setFrom(String value)
value
- the new frompublic void setMailer(String value)
value
- the new mailerpublic void setMailHost(String value)
value
- the new mail hostpublic void setMailPassword(String value)
value
- the new mail passwordpublic void setMailPort(String value)
value
- the new mail portpublic void setMailUser(String value)
value
- the new mail userpublic void setMessage(String value)
value
- the new messagepublic void setPassword(String value)
value
- the new passwordpublic void setProperties(Properties props)
props
- the new propertiespublic void setProperties(String props)
props
- the new propertiespublic void setProtocol(String value)
value
- the new protocolpublic void setStoreHost(String value)
value
- the new store hostpublic void setSubject(String value)
value
- the new subjectpublic void setTo(String value)
value
- the new topublic void setUrl(String value)
value
- the new urlpublic void setUser(String value)
value
- the new userpublic String getContentType()
public void setContentType(String contentType)
contentType
- the new content typepublic String getFooter()
public void setFooter(String footer)
footer
- the new footerpublic String getHeader()
public void setHeader(String header)
header
- the new headerCopyright © 2010-2020 Toolsverse. All Rights Reserved.