Dart Smtp, Pop, Imap Controls
AddMessage Method
String or Byte array providing the encoded message to be added to the new message part, or a String containing the name of the file containing the encoded message.
Description
Attach an existing message to the message.
Syntax
Visual Basic
Public Function AddMessage( _
   ByVal Message As Variant _
) As Part
Parameters
Message
String or Byte array providing the encoded message to be added to the new message part, or a String containing the name of the file containing the encoded message.
Return Value
The Part Object object created and added to the message's Parts property.
Remarks
This method provides a simple way to attach an existing message. Any number of existing messages can be added to a Message object. Although this method may be used to "Forward" a message, the Forward method is even easier to use.

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

See Also

Message Object  | Message Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic