VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



CMHTML

by Gary Ong (2 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

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
Code 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

Download CMHTML

Download CMHTML (21 KB)

CMHTML Comments

No comments have been posted about CMHTML. Why not be the first to post a comment about CMHTML.

Post your comment

Subject:
Message:
0/1000 characters