|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.AbstractGPTool com.esri.arcgis.geoprocessing.tools.servertools.SendEmailWithZipFileAttachment
public class SendEmailWithZipFileAttachment
Emails a file to an email address using a SMTP email server. The Send Email With Zip File Attachment tool is contained in the Server Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
SendEmailWithZipFileAttachment()
Creates the Send Email With Zip File Attachment tool with defaults. |
|
SendEmailWithZipFileAttachment(String to,
String from,
String subject,
String text,
Object zipFile,
int maxFileSizeMB,
String sMTPEmailServer)
Creates the Send Email With Zip File Attachment tool with the required parameters. |
Method Summary | |
---|---|
String |
getFrom()
Returns the From parameter of this tool . |
int |
getMaxFileSizeMB()
Returns the Max File Size (MB) parameter of this tool . |
String |
getPassword()
Returns the Password parameter of this tool . |
String |
getSent()
Returns the Sent parameter of this tool (Read only). |
String |
getSMTPEmailServer()
Returns the SMTP Email Server parameter of this tool . |
String |
getSubject()
Returns the Subject parameter of this tool . |
String |
getText()
Returns the Text parameter of this tool . |
String |
getTo()
Returns the To parameter of this tool . |
String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
String |
getToolboxName()
Returns the name of the tool box containing this tool. |
String |
getToolName()
Returns the name of this tool. |
String |
getUser()
Returns the User parameter of this tool . |
Object |
getZipFile()
Returns the Zip File parameter of this tool . |
void |
setFrom(String from)
Sets the From parameter of this tool . |
void |
setMaxFileSizeMB(int maxFileSizeMB)
Sets the Max File Size (MB) parameter of this tool . |
void |
setPassword(String password)
Sets the Password parameter of this tool . |
void |
setSMTPEmailServer(String sMTPEmailServer)
Sets the SMTP Email Server parameter of this tool . |
void |
setSubject(String subject)
Sets the Subject parameter of this tool . |
void |
setText(String text)
Sets the Text parameter of this tool . |
void |
setTo(String to)
Sets the To parameter of this tool . |
void |
setUser(String user)
Sets the User parameter of this tool . |
void |
setZipFile(Object zipFile)
Sets the Zip File parameter of this tool . |
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
getParameterValues, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendEmailWithZipFileAttachment()
Initializes the array of tool parameters with the default values specified when the tool was created.
public SendEmailWithZipFileAttachment(String to, String from, String subject, String text, Object zipFile, int maxFileSizeMB, String sMTPEmailServer)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
to
- the email address of the recipient.from
- the email address of the sender.subject
- the text in the subject line of the email.text
- the body text of the email.zipFile
- the file to be attached to the email.maxFileSizeMB
- the maximum allowable size of an attachment. if you don't know what to use for Max File Size, check the attachment size limit of your SMTP mail server and the recipient email provider .sMTPEmailServer
- the SMTP email server that will deliver the email.Method Detail |
---|
public String getTo()
public void setTo(String to)
to
- the email address of the recipient.public String getFrom()
public void setFrom(String from)
from
- the email address of the sender.public String getSubject()
public void setSubject(String subject)
subject
- the text in the subject line of the email.public String getText()
public void setText(String text)
text
- the body text of the email.public Object getZipFile()
public void setZipFile(Object zipFile)
zipFile
- the file to be attached to the email.public int getMaxFileSizeMB()
public void setMaxFileSizeMB(int maxFileSizeMB)
maxFileSizeMB
- the maximum allowable size of an attachment. if you don't know what to use for Max File Size, check the attachment size limit of your SMTP mail server and the recipient email provider .public String getSMTPEmailServer()
public void setSMTPEmailServer(String sMTPEmailServer)
sMTPEmailServer
- the SMTP email server that will deliver the email.public String getUser()
public void setUser(String user)
user
- the user which will log into the SMTP email server.public String getPassword()
public void setPassword(String password)
password
- the user password used to connect to the SMTP email server (if necessary).public String getSent()
public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |