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

  

  Chilkat ActiveX Components

  Chilkat .NET Components

  Chilkat C++ Libraries

  

  

  

  

 

FAQ

HTML Email Conversion
Convert HTML to MHT, EML, or an Email object for sending.

Latest Release: v3.0.0
License 30-day Unlock Code Documentation Change Log

SEE ALSO: Chilkat MHT.NET for C#, VB.NET, and ASP.NET

"Chilkat's MHT has cut our development time down drastically. In the past our developers had to hand-code long HTML strings. Now our designers lay out good looking HTML pages, and it takes our developers minutes to plug the code into the back-end, thanks to Chilkat MHT. The result, much better looking, better branded and much more effective eMails, in a 1/4 of the time. It is changing the way we communicate, and as the communication centre for the South African wine industry, that means the whole industry is going to benefit with much better branded communication. Watch this space..."

Kevin Kidson
The South African Wine Directory

Chilkat MHT allows you to automate the conversion of HTML with embedded images and style sheets directly to an email object that can be sent with Chilkat Mail or Chilkat WebMail.

Chilkat MHT frees you from the tedious and time-consuming programming task of constructing an HTML, adding embedded images, and then replacing the image tags with CID URLs. You can build an HTML page in your favorite HTML editor, and then save it for your application to use at runtime.

Chilkat MHT does much more. See the feature list below.

Features:

  • Royalty-free licensing.
  • Framesets are supported.
  • Can unarchive MHT to local files.
  • All methods accept both URLs and local HTML filenames.
  • Construct an email from a URL or local HTML filename in one line of code.
  • Integrates directly and seamlessly with Chilkat Mail or Chilkat WebMail.
  • Open architecture to allow integration with other email components or systems.
  • HTML to EML conversion.
  • HTML to MHT conversion.
  • All images and style sheets automatically downloaded and embedded into the email.
  • Emails can be viewed offline without an Internet connection.
  • All hyperlinks converted to fully qualified URLs.
  • Scripting automatically removed for security sensitive email clients such as Outlook.
  • Handles pages in any language, including Chinese, Japanese, Korean, Hebrew, and anything else.
  • Capable of converting directly from in-memory HTML.

Using Javascript in HTML Email

Click HERE for an informative article regarding the use of Javascript in HTML Email. Web pages and HTML that heavily use Javascript may not (and probably won't) convert properly to EML.

Also note this information from Microsoft: "With the Outlook E-mail Security Update installed, Outlook 2000 completely disables script in HTML e-mail messages, regardless of the Internet security settings." Additional information can be found at the links below:

Outlook E-mail Security Update Information
http://support.microsoft.com/support/kb/articles/q262/7/01.asp

How Outlook Renders HTML
http://support.microsoft.com/support/kb/articles/q249/9/72.asp

Delphi and C++ Builder

Before using this ActiveX component, do not forget to import it into your Delphi or C++ Builder project. If using C++ Builder, you can also use the chilkat.lib wrapper library. This component will be offered as a C++ Builder static library in the next month.

Examples:

Sending a local HTML file in an Email

    Dim mht As New ChilkatMHT   
    Dim email As New ChilkatEmail


    ' This line packages the HTML and all associated
    ' images and packages it into an email.  External images
    ' can be local on disk, or on the Web -- Chilkat MHT
    ' will get them wherever they are located.
    Set email = mht.GetEmail("C:\My HTML\test.html")

    ' The rest is simply Chilkat Mail code to send the email.
    email.FromName = "John"
    email.FromAddress = "john@chilkatsoft.com"
    success = email.AddTo("Bob", "bob@chilkatsoft.com")
    Dim mailman As New ChilkatMailMan
    mailman.UnlockComponent "ChilkatMailUnlockCode"
    mailman.SmtpHost = "my.smtphost.com"
    success = mailman.SendEmail(email)

Sending the CNN homepage in an Email

    Dim mht As New ChilkatMHT   
    Dim email As New ChilkatEmail
    ' This line downloads the HTML and all associated
    ' images and packages it into an email.
    Set email = mht.GetEmail("http://www.cnn.com/")

    ' The rest is simply Chilkat Mail code to send the email.
    email.FromName = "John"
    email.FromAddress = "john@chilkatsoft.com"
    success = email.AddTo("Bob", "bob@chilkatsoft.com")
    Dim mailman As New ChilkatMailMan
    mailman.UnlockComponent "ChilkatMailUnlockCode"
    mailman.SmtpHost = "my.smtphost.com"
    success = mailman.SendEmail(email)

Saving the New York Times homepage as an EML file.

    Dim mht As New ChilkatMHT   
    ' This line downloads the HTML and all associated
    ' images and packages it into an EML file.
    success = mht.GetAndSaveEML("http://www.nytimes.com/", "nytimes.eml")

Saving the Yahoo! Korea homepage as a MHT file.

    Dim mht As New ChilkatMHT   
    ' This line downloads the HTML and all associated
    ' images and packages it into an EML file.
    success = mht.GetAndSaveMHT("http://kr.yahoo.com/", "yahooKR.mht") 

Description of Chilkat MHT in Question Form:

  1. How do I send an HTML page in email with VB?
  2. How do I convert HTML to MHT?
  3. How do I convert HTML to EML?
  4. How do I send HTML Email in an ASP script?
  5. How do I automatically format HTML into an Email?

 

 

About Chilkat

Minimum Requirements
Internet Explorer 4.01
(for Windows 95:
Windows Socket 2
)

Languages

  • Visual Basic
  • Visual C++
  • Delphi
  • ASP
  • FoxPro
  • C++ Builder
  • Excel
  • Access
  • C#
  • VB.NET

Supports

  • Windows XP
  • Windows 2000
  • Windows NT
  • Windows Me
  • Windows 95/98

 


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

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

Downloads
.NET 2.0
.NET 1.*
.NET x64
VC++ 6.0
VC++ 7.0
VC++ 8.0
Java
Ruby
Perl 5.8.*
Perl 5.10.*
Python
Bounce ActiveX
Charset ActiveX
Email ActiveX
FTP2 ActiveX
Crypt ActiveX
HTML-to-XML ActiveX
HTTP ActiveX
IMAP ActiveX
MHT ActiveX
MIME ActiveX
RSA ActiveX
Socket ActiveX
Spider ActiveX (free)
String ActiveX (free)
Tar ActiveX
Upload ActiveX (free)
XML ActiveX (free)
XMP ActiveX
Zip ActiveX