InternetMailAttachments.Add

Syntax variant: Add file

Syntax:

Add(<AttachmentFileAddress>, <AttachmentDescription>)

Parameters:

<AttachmentFileAddress> (required)

Type: String.
Attachment file address.

<AttachmentDescription> (optional)

Type: String.
Attachment name shown by mail clients.

Description of method variant:

Adds file to mail attachments collection.

Syntax variant: Add binary data

Syntax:

Add(<BinaryData>, <AttachmentDescription>)

Parameters:

<BinaryData> (required)

Type: BinaryData.
Attachment data.

<AttachmentDescription> (optional)

Type: String.
Attachment name shown by mail clients.
Default value: Empty string.

Description of method variant:

Adds binary data to mail attachments collection.

Syntax variant: Add mail message

Syntax:

Add(<MailMessage>, <AttachmentDescription>)

Parameters:

<MailMessage> (required)

Type: InternetMailMessage.
Mail message attached to message.

<AttachmentDescription> (optional)

Type: String.
Mail attachment description.

Description of method variant:

Adds mail message to mail attachments collection.

Returned value:

Type: InternetMailAttachment.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

    

1C:Enterprise Developer's Community