473,382 Members | 1,332 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,382 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 6806
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.