469,270 Members | 1,171 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Create .eml for SMTP

Does anyone have an example of how to programmatically create a .eml ?
THANKS!
Jul 19 '05 #1
6 6644
look at this to use CDO
http://www.darkfalz.com/1090

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Karmens" <sp*************@yahoo.ca> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...
Does anyone have an example of how to programmatically create a .eml ?
THANKS!

Jul 19 '05 #2
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.

Curt_C [MVP] wrote:
look at this to use CDO
http://www.darkfalz.com/1090

Jul 19 '05 #3
It's just a text file with specific content, right? So wouldn't
FileSystemObject be able to help you with this?

(See http://www.aspfaq.com/2039)

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


"Dave Karmens" <sp*************@yahoo.ca> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
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.

Curt_C [MVP] wrote:
look at this to use CDO
http://www.darkfalz.com/1090

Jul 19 '05 #4
Yes, I think so but I was wondering if you could create an empty
envelope and populate the content...
From: "aa***@TRASHaspfaq.com"
To: "me@here.net"
Cc: "yo*@here.net"
Bcc: "us@there.com"
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--
Aaron Bertrand - MVP wrote:
It's just a text file with specific content, right? So wouldn't
FileSystemObject be able to help you with this?

(See http://www.aspfaq.com/2039)

Jul 19 '05 #5
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/


"Dave Karmens" <sp*************@yahoo.ca> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
Yes, I think so but I was wondering if you could create an empty
envelope and populate the content...
From: "aa***@TRASHaspfaq.com"
To: "me@here.net"
Cc: "yo*@here.net"
Bcc: "us@there.com"
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--
Aaron Bertrand - MVP wrote:
It's just a text file with specific content, right? So wouldn't
FileSystemObject be able to help you with this?

(See http://www.aspfaq.com/2039)

Jul 19 '05 #6
Yes, that will work fine I suppose ... I was just wondering if there was
some component that had predefined settings ... something like:
http://msdn.microsoft.com/library/de...ge_content.asp

However, I think the pre-made .eml will work best for my situation...

Thanks ( again ) Aaron!
Aaron Bertrand - MVP wrote:
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.

Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dan Boyle | last post: by
2 posts views Thread by RandRace | last post: by
1 post views Thread by Amy L. | last post: by
3 posts views Thread by dale zhang | last post: by
5 posts views Thread by Alain | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.