public class EmailFunctions
extends BaseFunctions
Constructor and Description |
---|
EmailFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
java.lang.String |
getGroovyKey() |
void |
sendEmail(java.lang.String pSubject,
java.lang.String pBody,
java.util.List<java.lang.String> pRecipientAddresses)
Sends an email using FlexDeploy's System Settings SMTP information to the list of email addresses specified.
|
void |
sendEmail(java.lang.String pSubject,
java.lang.String pBody,
java.util.List<java.lang.String> pRecipientAddresses,
java.util.List<EmailAttachment> pAttachments)
Sends an email using FlexDeploy's System Settings SMTP information to the list of email addresses specified.
|
void |
sendEmail(java.lang.String pSubject,
java.lang.String pBody,
java.lang.Long pGroupId)
Sends an email using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.
|
void |
sendEmail(java.lang.String pSubject,
java.lang.String pBody,
java.lang.Long pGroupId,
java.util.List<EmailAttachment> pAttachments)
Sends an email using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.
|
public EmailFunctions(boolean isExecute, LogFunctions pFLOG)
public void sendEmail(java.lang.String pSubject, java.lang.String pBody, java.lang.Long pGroupId)
pSubject
- The subject line for the email.pBody
- The html body that will be used as the email body to be sent. A simple string can also be used instead of html.pGroupId
- The FlexDeploy security group that the email will be sent to.public void sendEmail(java.lang.String pSubject, java.lang.String pBody, java.lang.Long pGroupId, java.util.List<EmailAttachment> pAttachments)
pSubject
- The subject line for the email.pBody
- The html body that will be used as the email body to be sent. A simple string can also be used instead of html.pGroupId
- The FlexDeploy security group that the email will be sent to.pAttachments
- List of EmailAttachment objects to include.public void sendEmail(java.lang.String pSubject, java.lang.String pBody, java.util.List<java.lang.String> pRecipientAddresses)
pSubject
- The subject line for the email.pBody
- The html body that will be used as the email body to be sent. A simple string can also be used instead of html.pRecipientAddresses
- A list of email addresses that the email will be sent to.public void sendEmail(java.lang.String pSubject, java.lang.String pBody, java.util.List<java.lang.String> pRecipientAddresses, java.util.List<EmailAttachment> pAttachments)
pSubject
- The subject line for the email.pBody
- The html body that will be used as the email body to be sent. A simple string can also be used instead of html.pRecipientAddresses
- A list of email addresses that the email will be sent to.pAttachments
- List of EmailAttachment objects to include.public java.lang.String getGroovyKey()
public void cleanup()