Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Adds an attachment to the email based on a container field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SendMail | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
EmailID | The email reference number obtained using SendMail.CreateEmail function. | $EmailID | |
Container | The container to attach to email. | Attachment::Container | |
Name | The name for the attachment. If empty, version 6.2 or newer uses file name from container. |
"sample.pdf" | Optional |
MimeType | The mime type to use. e.g. "application/pdf" for PDF files. If missing, we use "application/octet-stream". Version 6.2 or newer detects mime type from file extension if needed. |
"application/octet-stream" | Optional |
InlineID | The content ID for inline images (CID). Empty text or no parameter gives regular attachment. |
"test.png@3C111B0E.81ED.478A.912C.4B64F538003C" | Optional |
Method | The method for the content-type parameter. Currently only for sending calendar invitiations. |
"REQUEST" | Optional |
Returns OK or error.
Add attachment:
Set Variable [$r; Value:MBS("SendMail.AddAttachmentContainer"; $EmailID; Attachment::Container; Attachment::Name; Attachment::Type)]
Add invitation attachment:
Set Variable [$r; Value:MBS("SendMail.AddAttachmentContainer"; $EmailID; Attachment::ICS; "invitation.ics"; "text/calendar"; ""; "REQUEST")]
This function checks for a license.
Created 3th September 2014, last changed 2nd August 2021