Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
User-Defined (Custom) Email Header FieldsDownload: Chilkat .NET Assemblies This example shows how to add custom header fields to your email messages. // The Email.AddHeaderField can be used to add custom header fields // to an email, or to replace existing header fields. If a header field with // the same name already exists, AddHeaderField will replace it. private void AddCustomHeaderFields(Chilkat.Email email) { // In this example, I'll prefix the custom fields with "X-". // Custom header field names must follow this rule: // 1*<any CHAR, excluding CTLs, SPACE, and ":"> // In plain English: The field name must be 1 or more characters, // and cannot include control chars, SPACE, or ":". email.AddHeaderField("X-Company", "Chilkat Software"); email.AddHeaderField("X-Regarding", "Example Code"); // There is a special email header field prefix // that can be used with Chilkat email: "CKX-" // Any header field beginning with the prefix "CKX-" is automatically // removed from the email during the sending process. (Except when // sending MIME via SendMime.) // This allows you to embed meta-data with your email and save the MIME // to a file or to your database. For example: email.AddHeaderField("CKX-Customer-ID", "1234"); email.SaveEml("customer.eml"); } Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.