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
| Parameter | Type | Description |
|---|---|---|
sTo | String | a list of email addresses where the email should be sent. If multiple emails are included, they should be delimited by semicolons. |
sCC | String | a list of email addresses where the email should be cc'd. If multiple emails are cc'd, they should be delimited by semicolons. |
sBCC | String | a list of email addresses where the email should be bcc'd. If multiple emails are bcc'd, they should be delimited by semicolons |
sSubject | String | the text subject for the email |
sAttach | String | text of an exact file name (including directory) that should be included as an attachment on the email. |
sEmailName | String | if 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. |
sBody | String | the text of the email. This text can contain multiple lines |
bShowErrors | Boolean | True or False boolean value. If true, any errors found upon email execution are shown to the user through a popup dialog |
bShowConfirmation | Boolean | True or False boolean value. If true, a confirmation dialog is shown to the user after email is sent. |
sLayout | String | Name of layout as setup in LayoutBuilder...EMail Layouts |
sIDCompany | String | to lookup the ID record needed for mail merge fields |
sID | String | to lookup the ID record needed for mail merge fields |
sVendorCompany | String | to lookup the Vendor record needed for mail merge fields |
sVendor | String | to lookup the Vendor record needed for mail merge fields |
sCompany | String | to lookup the Company record needed for mail merge fields |
sEventNum | String | to lookup the Event record needed for mail merge fields |
sCribCompany | String | to lookup the Crib record needed for mail merge fields |
sCrib | String | to lookup the Crib record needed for mail merge fields |
sLocationCompany | String | to lookup the Location record needed for mail merge fields |
sLocation | String | to lookup the Location record needed for mail merge fields |
sEmployeeCompany | String | to lookup the Employee record needed for mail merge fields |
sEmployee | String | to lookup the Employee record needed for mail merge fields |
sDepartmentCompany | String | to lookup the Department record needed for mail merge fields |
sDepartment | String | to 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