SendAll method: SMTPSession class

Syntax

SendAll(&Emails)

Description

Use the SendAll method to send a number of emails, all using the same SMTP session and session properties.

Parameters

Parameter Description

&Emails

Specify an array of MCFOutboundEmail objects.

Returns

An array of number. Each item in the array indicates the status of an individual email object. Values are:

Value Description

%ObEmail_Delivered

The email was delivered.

%ObEmail_NotDelivered

Email delivery not attempted.

%ObEmail_PartiallyDelivered

The email was only partially delivered, that is, it was only delivered to some of the recipients.

%ObEmail_ FailedBeforeSending

The email wasn't delivered.

%ObEmail_ SentButResultUnknown

The email was sent but the result is unknown. The TimeToWaitForResult value was not sufficient to get the result of the send process.