InternetMailMessage.GetSourceData

Syntax:

GetSourceData()

Returned value:

Type: BinaryData.

Description:

It returns source data of the mail message.
If the message has been received from the server (by using the Get method of the InternetMail object) and has not been changed, the data being returned by the method matches those received from the server.
If the InternetMailMessage object has been created by the program or received from the server and changed, then the data are generated based on this object in the format they were prepared for transfer to the mail server at the time of mailing.

Availability:

Thin client, server, thick client, external connection.

Note:

The obtained data is not similar to the serialized data. It is a presentation of a message as it is transferred to the mail server when sent. In particular, the data obtained will not contain information on blind copies as this data is not transferred to the server.
The equivalence of the original mail and a copy created with the help of the method SetSourceData based on the data is not guaranteed.
One can attempt to restore mail content manually if an error occurs during mail message decryption.

    

1C:Enterprise Developer's Community