Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Send Czech Email in Visual Basic
This VB sample program demonstrates how to send email using Czech (Windows-1250) characters. 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.