Skip to content

Planet-Source-Code/gary-ong-cmhtml__1-5658

Repository files navigation

CMHTML

Description

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.

More Info

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

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

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.

Submitted On 2000-01-24 23:42:06
By Gary Ong
Level Advanced
User Rating 4.7 (47 globes from 10 users)
Compatibility VB 5.0, VB 6.0
Category Internet/ HTML
World Visual Basic
Archive File CODE_UPLOAD30291242000.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published