VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB.NET Examples

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

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

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

Create Email with File Attachment and Save as .eml

Create email with file attachment and save as .eml.

Download: Chilkat .NET Assemblies

Dim email As New Chilkat.Email()

email.Subject = "This is a test"
email.Body = "This is a test"
email.From = "support@chilkatsoft.com"
email.AddTo("Matt","matt@chilkatsoft.com")

Dim success As Boolean

Dim contentType As String
contentType = email.AddFileAttachment("il1120.pdf")
If (contentType = vbNullString ) Then
    TextBox1.Text = TextBox1.Text & email.LastErrorText & vbCrLf
    Exit Sub
End If


success = email.SaveEml("email.eml")
If (success = false) Then
    TextBox1.Text = TextBox1.Text & email.LastErrorText & vbCrLf
    Exit Sub
End If


MsgBox("Saved EML!")
 

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