Visual Basic Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Custom Email Header Fields

Download Chilkat Email ActiveX

How to add custom header fields to an email.

' The ChilkatEmail2.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 Sub AddCustomHeaderFields(email As ChilkatEmail2)

    ' I cannot recommend header field naming conventions, especially with
    ' respect to anti-SPAM and/or anti-Virus email blocking/filtering.
    ' I would recommend using the "view source" features of your email client
    ' to view the header fields of emails you receive.  You'll get a sense of
    ' which fields are custom and which are not.
    
    ' In this example, I'll prefix the custom fields with "X-".
    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"
        
End Sub

 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.