Skip to main content

SendLayoutEMailMerge

Structure

SendEmail(sTo,sCC,sBCC,sSubject,sAttach,sEmailName,sBody,bShowErrors,bShowConfirmation,sLayout,sIDCompany,sID,sVendorCompany,sVendor, sCompany,sEventNum,sCribCompany,sCrib,sLocationCompany,sLocation,sEmployeeCompany,sEmployee,sDepartmentCompany,sDepartment)

Parameters

ParameterTypeDescription
sToStringa list of email addresses where the email should be sent. If multiple emails are included, they should be delimited by semicolons.
sCCStringa list of email addresses where the email should be cc'd. If multiple emails are cc'd, they should be delimited by semicolons.
sBCCStringa list of email addresses where the email should be bcc'd. If multiple emails are bcc'd, they should be delimited by semicolons
sSubjectStringthe text subject for the email
sAttachStringtext of an exact file name (including directory) that should be included as an attachment on the email.
sEmailNameStringif an error occurs on email send, a log is made to the History log in Profile Manger. These history logs are saved with this email name, to allow different email types to be grouped.
sBodyStringthe text of the email. This text can contain multiple lines
bShowErrorsBooleanTrue or False boolean value. If true, any errors found upon email execution are shown to the user through a popup dialog
bShowConfirmationBooleanTrue or False boolean value. If true, a confirmation dialog is shown to the user after email is sent.
sLayoutStringName of layout as setup in LayoutBuilder...EMail Layouts
sIDCompanyStringto lookup the ID record needed for mail merge fields
sIDStringto lookup the ID record needed for mail merge fields
sVendorCompanyStringto lookup the Vendor record needed for mail merge fields
sVendorStringto lookup the Vendor record needed for mail merge fields
sCompanyStringto lookup the Company record needed for mail merge fields
sEventNumStringto lookup the Event record needed for mail merge fields
sCribCompanyStringto lookup the Crib record needed for mail merge fields
sCribStringto lookup the Crib record needed for mail merge fields
sLocationCompanyStringto lookup the Location record needed for mail merge fields
sLocationStringto lookup the Location record needed for mail merge fields
sEmployeeCompanyStringto lookup the Employee record needed for mail merge fields
sEmployeeStringto lookup the Employee record needed for mail merge fields
sDepartmentCompanyStringto lookup the Department record needed for mail merge fields
sDepartmentStringto lookup the Department record needed for mail merge fields

Description

This procedure sends an email through the IndySoft email system, as defined on the 'EMail Settings' tab of User/Location Settings. Any errors occurred during the sending of the email are logged to Profile Manager History log, just as other emails in IndySoft. This procedure utilizes an email layout from PrintBuilder (sLayout parameter) as compared to the SendEMail procedure, which only sends text-based emails. This procedure allows the user to specify key fields for selecting all mail-merge groups like asset, company, department, etc. as compared to the SendLayoutEMail procedure, which only sends the email layout - skipping all mail-merge replacements. If a Sys. Admin. Log is created (because of System-Wide Preference) then this log will include the company/id from the sIDCompany and sID parameters.

Example

No example provided

See also

No related topics