Smtp Object : Send Method |
Visual Basic |
---|
Public Sub Send( _ Optional ByRef Msg As Variant _ ) |
If the Msg parameter is not specified, the message contained in the Message property is sent.
The recipients of the message are determined by the To, Cc, and Bcc labels in the message header, unless overridden by the To property. Bcc header fields are removed from the message header before sending (Bcc fields are used for the message envelope only).
The sender of the message is determined by the From label in the message header, unless overridden by the From property.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):