HeaderFields Collection : Add Method |
Visual Basic |
---|
Public Function Add( _ ByVal Label As LabelConstants, _ ByVal Value As String, _ Optional ByVal Unique As Boolean = False _ ) As Long |
Value | Description |
---|---|
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:" |
msgNull | N/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:" |
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:
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):