MAIL New attachment
MAIL New attachment ( value {; name {; cid {; type {; disposition}}}} ) -> Function result
Parameter | Type | Description | |
---|---|---|---|
value | Text, BLOB, Object | 🡒 | Object (4D.File, 4D.ZipFile, 4D.Blob), orPath of the attachment file (text), orBlob containing the attachment (BLOB) |
name | Text | 🡒 | Name + extension used by the mail client to designate the attachment |
cid | Text | 🡒 | ID of attachment (HTML messages only), or " " if no cid is required |
type | Text | 🡒 | Value of the content-type header |
disposition | Text | 🡒 | Value of the content-disposition header: "inline" or "attachment". |
Function result | Object | 🡐 | Attachment object |
Description
Documentation moved
The documentation for this command has been moved. Visit developer.4d.com for updated documentation.
The MAIL New attachment command allows you to create an attachment object that you can add to an Email object (see transporter.send( ))