Dart Smtp, Pop, Imap Controls
AddText Method
String or Byte array with text to use for the part, or a String containing the name of the file containing the text to use for the part.
Specifies the character set. Any registered character set may be specified. Default is "us-ascii".
Description
Add a text body part, optionally specifying a character set.
Syntax
Visual Basic
Public Function AddText( _
   ByVal Text As Variant, _
   Optional ByVal Charset As String _
) As Part
Parameters
Text
String or Byte array with text to use for the part, or a String containing the name of the file containing the text to use for the part.
Charset
Specifies the character set. Any registered character set may be specified. Default is "us-ascii".
Return Value
The Part Object created and added to the message's Parts property.
Remarks

This method allows text parts to be added to multipart messages. Together with the AddAttachment, AddMessage, and AddDigest methods, many common message formats may be created.

This method is used to add text if the message is multipart (Message.Parts.Count > 0). If a non-multipart message is being composed, the Text property can be used instead.

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 Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic