New¶
Creates a new message instance for sending.
$Messages.New(to?: string, subject?: string, body?: string):Message (Message)
Parameters¶
string to optional
The email address of the primary recipient. Optional, but at least one recipient must be specified before sending.
string subject optional
The subject of the message. Optional.
string body optional
The body of the message. Optional.
Returns¶
A new Message instance.
Remarks¶
This method only prepares the message; it does not send it. To send the message, use the Message.Send method.
Create and send a simple message¶
1 2 | |
Create a message with multiple recipients and attachments¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |