|
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:
- How do I send an
HTML page in email with VB?
- How do I convert
HTML to MHT?
- How do I convert
HTML to EML?
- How do I send HTML
Email in an ASP script?
- How do I automatically
format HTML into an Email?
About
Chilkat
|