Dart Smtp, Pop, Imap Controls
Add Method
Specifies the symbolic name for the header label being added. Use msgNull if Value includes the label.
Value to add to the collection.
Optional. Specifies whether the header field should replace any existing header fields with the same label. Defaults to False.
Description
Add one or more header fields to the collection. If multiple header fields are provided they must be separated by CR/LF pairs.
Syntax
Visual Basic
Public Function Add( _
   ByVal Label As LabelConstants, _
   ByVal Value As String, _
   Optional ByVal Unique As Boolean = False _
) As Long
Parameters
Label
ValueDescription
msgAlsoControl"Also-Control:"
msgAlternateRecipient"Alternate-Recipient:"
msgApparentlyTo"Apparently-To:"
msgApproved"Approved:"
msgArticleNames"Article-Names:"
msgArticleUpdates"Article-Updates:"
msgAutoForwarded"Auto-Forwarded:"
msgComments"Comments:"
msgContentBase"Content-Base:"
msgContentConversion"Content-Conversion:"
msgContentDescription"Content-Description:"
msgContentDisposition"Content-Disposition:"
msgContentID"Content-ID:"
msgContentIdentifier"Content-Identifier:"
msgContentLanguage"Content-Language:"
msgContentLength"Content-Length:"
msgContentLocation"Content-Location:"
msgContentMD5"Content-MD5:"
msgContentReturn"Content-Return:"
msgContentSGMLEntity"Content-SGML-Entity:"
msgContentTransferEncoding"Content-Transfer-Encoding:"
msgContentType"Content-Type:"
msgControl"Control:"
msgConversion"Conversion:"
msgConversionWithLoss"Conversion-With-Loss:"
msgDate"Date:"
msgDeliveryDate"Delivery-Date:"
msgDeliveryReport"Delivery-Report:"
msgDiscardedX400IPMSExtensions"Discarded-X400-IPMS-Extensions:"
msgDiscardedX400MTSExtensions"Discarded-X400-MTS-Extensions:"
msgDiscloseRecipients"Disclose-Recipients:"
msgDistribution"Distribution:"
msgDLExpansionHistoryIndication"DL-Expansion-History-Indication:"
msgEncoding"Encoding:"
msgErrorsTo"Errors-To:"
msgExpires"Expires:"
msgFax"Fax:"
msgFcc"Fcc:"
msgFollowupTo"Followup-To:"
msgForComment"For-Comment:"
msgForHandling"For-Handling:"
msgFrom"From:"
msgGenerateDeliveryReport"Generate-Delivery-Report:"
msgImportance"Importance:"
msgIncompleteCopy"In-Reply-To:"
msgInReplyTo"Incomplete-Copy:"
msgKeywords"Keywords:"
msgLanguage"Language:"
msgLines"Lines:"
msgMailer"Mailer:"
msgMailSystemVersion"Mail-System-Version:"
msgMessageID"Message-ID"
msgMessageType"Message-Type:"
msgMIMEVersion"MIME-Version:"
msgNewsgroups"Newsgroups:"
msgNullN/A
msgObsoletes"Obsoletes:"
msgOrganisation"Organisation:"
msgOrganization"Organization:"
msgOriginalEncodedInformationTypes"Original-Encoded-Information-Types:"
msgOriginatingClient"Originating-Client:"
msgPath"Path:"
msgPhone"Phone:"
msgPrecedence"Precedence:"
msgPreventNonDeliveryReport"Prevent-NonDelivery-Report:"
msgPriority"Priority:"
msgReceived"Received:"
msgReferences"References:"
msgReplyBy"Reply-By:"
msgReplyTo"Reply-To:"
msgReturnPath"Return-Path:"
msgReturnReceiptTo"Return-Receipt-To:"
msgSeeAlso"See-Also:"
msgSender"Sender:"
msgSensitivity"Sensitivity:"
msgStatus"Status:"
msgSubject"Subject:"
msgSummary"Summary:"
msgSupersedes"Supersedes:"
msgTelefax"Telefax:"
msgX400ContentReturn"X400-Content-Return:"
msgXMailer"X-Mailer:"
msgXNewsreader"X-Newsreader:"
msgXref"Xref:"
Specifies the symbolic name for the header label being added. Use msgNull if Value includes the label.
Value
Value to add to the collection.
Unique
Optional. Specifies whether the header field should replace any existing header fields with the same label. Defaults to False.
Return Value
Number of strings added to the collection.
Remarks

A header field is a label, followed by a colon, followed by a space, followed by one or more values separated by semicolons.

This method allows you to add header fields in the following two ways:

Error Codes

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

See Also

HeaderFields Collection  | HeaderFields Members


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