Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB Examples

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

More Examples...
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA


VB Strings
VB Byte Array

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

 

Send Cyrillic Email in Visual Basic

Download Chilkat Email ActiveX

This VB sample program demonstrates how to send email using Cyrillic (Windows-1251) characters. Cyrillic languages include Bulgarian, Russian, Serbian, and Ukrainian.

Private Sub Command1_Click()

    ' Create a mailman for sending.
    Dim mailman As New ChilkatMailMan2
    
    ' Anything begins the 30-day trial.
    mailman.UnlockComponent "UnlockCode"
    
    ' Set your SMTP server.
    mailman.SmtpHost = "smtp.earthlink.net"
    
    ' Create the email to be sent.
    Dim email As New ChilkatEmail2
    
    ' Load a Unicode text file containing text specific to the language you want.
    ' Alternatively, you might read Unicode strings from a relational database...
    Dim myUnicodeText As String
    ' Edit this line to load one of the text files provided in the download.
    myUnicodeText = email.LoadTextFileToUnicode("unicodeText.txt", "unicode")
    
    email.AddTo "Matt", "matt@chilkatsoft.com"
    email.Subject = myUnicodeText
    email.From = "support@chilkatsoft.com"
        
    email.Body = myUnicodeText
    
    ' Uncomment one of the following to specify the charset.
    ' Czech = 1250
    email.Charset = "windows-1250"
    ' Cyrillic = 1251
    'email.Charset = "windows-1251"
    ' Greek = 1253
    'email.Charset = "windows-1253"
    ' Turkish = 1254
    'email.Charset = "windows-1254"
    ' Hebrew = 1255
    'email.Charset = "windows-1255"
    ' Arabic = 1256
    'email.Charset = "windows-1256"
    ' Baltic = 1257
    'email.Charset = "windows-1257"
        
    email.SaveEml "email.txt"
    
    ' Send the mail.
    success = mailman.SendEmail(email)
    If (success = 0) Then
        MsgBox mailman.LastErrorText
        mailman.SaveLastError "log.xml"
    Else
        MsgBox "Message Sent!"
    End If
    
End Sub


 

Need a specific example? Send a request to support@chilkatsoft.com

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