Send method: MCFEmail class
Syntax
Send()
Description
Use the Send method to send the email.
When you call the Send method, the following properties might be set based on the type of error:
-
InvalidAddresses
-
MessageNumber (from the PeopleTools Message Catalog)
-
MessageSetNumber (from the PeopleTools Message Catalog)
-
ValidSentAddresses
-
ValidUnsentAddresses
In addition, a list of substitution strings for the error message can be accessed by the ErrorMsgParamsCount property and the GetErrorMsgParam method.
Parameters
None.
Returns
A number indicating the status of the send. Values are:
| Numeric Value | Constant Value | Description |
|---|---|---|
|
0 |
%ObEmail_ FailedBeforeSending |
Email failed before being sent. |
|
1 |
%ObEmail_Delivered |
Email was delivered. |
|
2 |
%ObEmail_NotDelivered |
Email delivery not attempted. |
|
3 |
%ObEmail_PartiallyDelivered |
Email has only been partially delivered. Only some of the addresses in the list of addresses were delivered to. |
|
-1 |
%ObEmail_ SentButResultUnknown |
Email was sent but whether it was successful or not is not known. |