Skip to main content
Version: Next

MAIL New attachment

MAIL New attachment ( value {; name {; cid {; type {; disposition}}}} ) -> Function result

ParameterTypeDescription
valueText, BLOB, Object🡒Object (4D.File, 4D.ZipFile, 4D.Blob), orPath of the attachment file (text), orBlob containing the attachment (BLOB)
nameText🡒Name + extension used by the mail client to designate the attachment
cidText🡒ID of attachment (HTML messages only), or " " if no cid is required
typeText🡒Value of the content-type header
dispositionText🡒Value of the content-disposition header: "inline" or "attachment".
Function resultObject🡐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( ))