VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP 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

 

 

 

 

 

 

Send Email with Progress Monitoring

Download Chilkat .NET for 4.0 Framework

Download Chilkat .NET for 64-bit 4.0 Framework (x64)

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 64-bit 2.0 / 3.5 Framework (x64)

Download Chilkat .NET for 1.0 / 1.1 Framework

VB.NET source code to send email with progress monitoring.

    ' If we want to use events, we must declare the mailman as a member of the class.
    Private WithEvents mailman As New Chilkat.MailMan()

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        mailman.UnlockComponent("Anything for 30-day trial")

        ' We need to enable events to get the callbacks...
        mailman.EnableEvents = True

        mailman.SmtpHost = "smtp.comcast.net"

        Dim email As New Chilkat.Email
        email.AddTo("Chilkat Support", "support@chilkatsoft.com")
        email.From = "Matt Fausey <fausey@chilkatsoft.com>"

        email.Subject = "This is a test"
        email.SetHtmlBody("<html><body><h1>This is a test</h1><p>Hello World!</p></body></html>")

        ' Add a file attachment so we have something more significant to send
        ' and we'll be able to see the progress bar...
        email.AddFileAttachment("dude.gif")
        email.AddFileAttachment("dude2.gif")

        Dim success As Boolean
        success = mailman.SendEmail(email)

        If (Not success) Then
            MessageBox.Show(mailman.LastErrorText)
        End If

    End Sub

    ' This is the event callback...
    Private Sub mailman_OnSendPercentDone(ByVal sender As Object, ByVal args As Chilkat.MailPercentDoneEventArgs) Handles mailman.OnSendPercentDone
        ' args.PercentDone is an integer value indicating the percent done (1 to 100)
        ProgressBar1.Value = args.PercentDone
    End Sub




 

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

Mail Component · XML Parser