Create .eml for SMTP

D

Dave Karmens

Does anyone have an example of how to programmatically create a .eml ?
THANKS!
 
D

Dave Karmens

That just sends an email with CDO... I was looking to create a MMIME
message and drop it in the pickup folder.. I've created test messages
using Outlook Express, but there has to be an easier way to create the
envelope.
 
D

Dave Karmens

Yes, I think so but I was wondering if you could create an empty
envelope and populate the content...


From: "(e-mail address removed)"
To: "(e-mail address removed)"
Cc: "(e-mail address removed)"
Bcc: "(e-mail address removed)"
Subject: Subject
Date: Fri, 20 Feb 2004 09:45:06 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0006_01C3F796.3AA36E10"
X-Priority: 3
X-MSMail-Priority: Normal
X-Unsent: 1
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2055

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C3F796.3AA36E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


------=_NextPart_000_0006_01C3F796.3AA36E10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2055" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0006_01C3F796.3AA36E10--
 
A

Aaron Bertrand - MVP

Like a template? Sure, create envelope.eml manually, then in your ASP page,
read in the template file using FSO, and write out the new .eml file with
the tokens filled in with content.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top