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 semicolonssSubject | String | the text subject for the emailsAttach | 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 linesbShowErrors | Boolean | True or False boolean value. If true, any errors found upon email execution are shown to the user through a popup dialogbShowConfirmation | 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 LayoutssIDCompany | String | to lookup the ID record needed for mail merge fieldssID | String | to lookup the ID record needed for mail merge fieldssVendorCompany | String | to lookup the Vendor record needed for mail merge fieldssVendor | String | to lookup the Vendor record needed for mail merge fieldssCompany | String | to lookup the Company record needed for mail merge fieldssEventNum | String | to lookup the Event record needed for mail merge fieldssCribCompany | String | to lookup the Crib record needed for mail merge fieldssCrib | String | to lookup the Crib record needed for mail merge fieldssLocationCompany | String | to lookup the Location record needed for mail merge fieldssLocation | String | to lookup the Location record needed for mail merge fieldssEmployeeCompany | String | to lookup the Employee record needed for mail merge fieldssEmployee | String | to lookup the Employee record needed for mail merge fieldssDepartmentCompany | String | to lookup the Department record needed for mail merge fieldssDepartment | 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
Application Compatibility
IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management
Also See
No related topics |