Class EmailFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.EmailFunctions
- All Implemented Interfaces:
IEmailFunctions
Utility functions used to send emails
- Since:
- 5.4
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidsendEmail(String pSubject, String pBody, SendEmailOptions pSendEmailOptions, Collection<EmailAttachment> pAttachments) voidSends an email using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.voidsendEmail(String pSubject, String pBody, Long pGroupId, Collection<EmailAttachment> pAttachments) Sends emails using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.voidsendEmail(String pSubject, String pBody, Collection<String> pRecipientAddresses) Sends emails using FlexDeploy's System Settings SMTP information to the Collection of email addresses specified.voidsendEmail(String pSubject, String pBody, Collection<String> pRecipientAddresses, Collection<EmailAttachment> pAttachments) Sends an email using FlexDeploy's System Settings SMTP information to the Collection of email addresses specified.Methods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Constructor Details
-
EmailFunctions
-
-
Method Details
-
sendEmail
Sends an email using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.- Specified by:
sendEmailin interfaceIEmailFunctions- Parameters:
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.
-
sendEmail
public void sendEmail(String pSubject, String pBody, Long pGroupId, Collection<EmailAttachment> pAttachments) Sends emails using FlexDeploy's System Settings SMTP information to all users associated with FlexDeploy security group of specified Id.- Specified by:
sendEmailin interfaceIEmailFunctions- Parameters:
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- Collection of EmailAttachment objects to include.
-
sendEmail
Sends emails using FlexDeploy's System Settings SMTP information to the Collection of email addresses specified.- Specified by:
sendEmailin interfaceIEmailFunctions- Parameters:
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 Collection of email addresses that the email will be sent to.
-
sendEmail
public void sendEmail(String pSubject, String pBody, Collection<String> pRecipientAddresses, Collection<EmailAttachment> pAttachments) Sends an email using FlexDeploy's System Settings SMTP information to the Collection of email addresses specified.- Specified by:
sendEmailin interfaceIEmailFunctions- Parameters:
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 Collection of email addresses that the email will be sent to.pAttachments- Collection of EmailAttachment objects to include.
-
sendEmail
public void sendEmail(String pSubject, String pBody, SendEmailOptions pSendEmailOptions, Collection<EmailAttachment> pAttachments) - Specified by:
sendEmailin interfaceIEmailFunctions- Parameters:
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.pSendEmailOptions- a SendEmailOptions POJO with the email recipients and aggregation settings.pAttachments- Collection of EmailAttachment objects to include.
-
getGroovyKey
- Specified by:
getGroovyKeyin interfaceIEmailFunctions- Specified by:
getGroovyKeyin classBaseFunctions
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceIEmailFunctions- Specified by:
cleanupin classBaseFunctions
-