473,226 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Create .eml for SMTP

Does anyone have an example of how to programmatically create a .eml ?
THANKS!
Jul 19 '05 #1
6 6801
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null,...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
2
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it from windows the other day and it doesn't work. It...
1
by: Cyndia A. | last post by:
Need ur Help on the following. In my ASP.Net (with C#) Application, I am sending a mail to all newly registered users. I am using System.Web.Mail Package. Can u please guide me how to sort...
3
by: Robert Hogan | last post by:
Hello, I am attempting to send emails using T-SQL (in a SQLServerAgent Job) using the stored procedure sp_SendSMTPMail. I created the stored proc using the following script that I got off a post...
1
by: Amy L. | last post by:
I am working on creating a web service that will create a signed xml file. I would like to create this file in memory and than somehow email it to the user that requested it to be generated. I...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
5
by: Alain | last post by:
Hi, I am trying to figure out why I get the following error when I try to send a mail from an ASP.NET (1.1) application. When I use the same code from a Windows exe then the code works...
2
by: Abhi | last post by:
i need to create a user in web mail using dotnet coad by using webmailserver api ex: xxx is my webmail then i want to create to a user in that webmail xxx ex: yyy@xxx.com how i should do in...
5
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body to contain all of the text data from the file...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.