This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
MAIL New attachment

MAIL New attachment 


 

MAIL New attachment ( value {; name {; cid {; type {; disposition}}}} ) -> Function result 
Parameter Type   Description
value  Text, BLOB, Object in Object (4D.File, 4D.ZipFile, 4D.Blob), or
Path of the attachment file (text), or
Blob containing the attachment (BLOB)
name  Text in Name + extension used by the mail client to designate the attachment
cid  Text in ID of attachment (HTML messages only), or " " if no cid is required
type  Text in Value of the content-type header
disposition  Text in Value of the content-disposition header: "inline" or "attachment".
Function result  Object in Attachment object

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( ))

 
PROPERTIES 

Product: 4D
Theme: Mail
Number: 1644

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)