VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CMHTML

Gary Ong  (2 Submissions)   Internet/HTML   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This class demonstrates how to send MHTML email. It has a very simple interface which allows you to send HTML formatted email with 2 method calls. This combines code from Sebastian, Luis Cantero (EncodeBase64) and Brian Anderson for the SMTP Winsock code. Sample code is included.

Inputs
There are 2 method calls required: 1) AddAttachment - which takes the full pathname of file you want to attach and also the content identifier (CID) which you will use in your HTML email body 2) SendEmail - which takes 6 parameters (see example).

Assumes
MHTML is used by most of the newish email clients including Outlook Express and many of the web email sites. It allows you to include all the richness of HTML into your email message which is very cool. For more information regarding MHTML please lookup the following site: http://www.dsv.su.se/~jpalme/ietf/web-email.html

Returns
AddAttachment returns true if file to attach is accepted and False if it does not exist SendEmail returns true if email is sent ok and false otherwise.

Rate CMHTML (11(11 Vote))

Download CMHTML

CMHTML Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters