Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

February 12, 2008

C# to Send Big5 Email

Sending Big5 email using Chilkat’s email component is as easy as setting the Chilkat.Email.Charset property = "big5″. Here is an example:

...
   //  Create a new email object
    Chilkat.Email email = new Chilkat.Email();
	
    email.Subject = "常用字";
    email.Body = "常用字";
    email.From = "Chilkat Support <support@chilkatsoft.com>";
    email.AddTo("Matt", "matt@chilkatsoft.com");
	
    email.Charset = "big5";
	
    success = mailman.SendEmail(email);
    if (success != true)
    {
        MessageBox.Show(mailman.LastErrorText);
    }
    else
    {
        MessageBox.Show("Mail Sent!");
    }
	

Note: If the email.Charset property was left unset, the Chilkat email component would automatically recognize the Chinese characters and choose GB2312 as the default charset. By setting the Charset property = "big5″ the entire email is encoded using Big5 when sent.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.