InternetMail.Send

Syntax:

Send(<Message>, <ProcessTexts>, <SendingProtocol>)

Parameters:

<Message> (required)

Type: InternetMailMessage.
Mail message.

<ProcessTexts> (optional)

Type: InternetMailTextProcessing.
Processes texts before sending.
Default value: Process.

<SendingProtocol> (optional)

Type: InternetMailProtocol.
Specifies the type of sending protocol. Possible options are IMAP or SMTP.
Specifying POP3 results in an exception.
Default value: SMTP.

Description:

Sends a message of the InternetMailMessage type.

Availability:

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

Note:

If the IMAP protocol is used, then the message will be sent to the mail box of IMAP session, specified by CurrentMailbox property.

Example:

Mail = New InternetMail;
Message = New InternetMailMessage;
Mail.Logon(Profile);
Mail.Send(Message);
Mail.Logoff();


    

1C:Enterprise Developer's Community