Tools Links Login

CMHTML

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.

Original Author: Gary Ong

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).

Assumptions

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.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 111 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD30291242000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 21,789 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.