473,804 Members | 3,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create .eml for SMTP

Does anyone have an example of how to programmaticall y create a .eml ?
THANKS!
Jul 19 '05 #1
6 6829
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******** ******@TK2MSFTN GP12.phx.gbl...
Does anyone have an example of how to programmaticall y 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
FileSystemObjec t 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******** ******@TK2MSFTN GP12.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***@TRASHasp faq.com"
To: "me@here.ne t"
Cc: "yo*@here.n et"
Bcc: "us@there.c om"
Subject: Subject
Date: Fri, 20 Feb 2004 09:45:06 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_ 0006_01C3F796.3 AA36E10"
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.3 AA36E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
------=_NextPart_000_ 0006_01C3F796.3 AA36E10
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"MSHT ML 6.00.2900.2055" name=3DGENERATO R>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffff ff>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_ 0006_01C3F796.3 AA36E10--
Aaron Bertrand - MVP wrote:
It's just a text file with specific content, right? So wouldn't
FileSystemObjec t 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$******** *****@TK2MSFTNG P12.phx.gbl...
Yes, I think so but I was wondering if you could create an empty
envelope and populate the content...
From: "aa***@TRASHasp faq.com"
To: "me@here.ne t"
Cc: "yo*@here.n et"
Bcc: "us@there.c om"
Subject: Subject
Date: Fri, 20 Feb 2004 09:45:06 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_ 0006_01C3F796.3 AA36E10"
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.3 AA36E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
------=_NextPart_000_ 0006_01C3F796.3 AA36E10
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"MSHT ML 6.00.2900.2055" name=3DGENERATO R>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffff ff>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_ 0006_01C3F796.3 AA36E10--
Aaron Bertrand - MVP wrote:
It's just a text file with specific content, right? So wouldn't
FileSystemObjec t 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
2812
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, $port = null, $helo = null, $auth = null, $user = null, $pass = null) { if (!is_null($host)) $this->smtp_params = $host;
21
3389
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. Nancy W
2
13707
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 connects to the server and prints the banner but will not send mail. Here is my script: use Net::SMTP; my $smtp = Net::SMTP->new('smtp.comcast.net') or die "Can't Open server"!";
1
1331
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 out this ? Please Note ... I DO NOT want to hardcode the SMTP Server name,
3
7069
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 here on google. CREATE PROCEDURE sp_SendSMTPMail (@From varchar(255), @To varchar(8000), @Subject varchar(255), @Body varchar(8000),
1
7467
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 would prefer a solution that does not require the file to be first wrote to disk or requires the user to save the file from the browser. I know I can create a file using MemoryStream, but I not sure on how to transform that MemroyStream into an...
3
5590
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 account. I was using optimum online service with smtp server as “mail.optonline.net”. I can receive email correctly. Now I switch to verizon DSL. I change my smtp server accordingly as
5
2591
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 perfectly, so I suppose that is has something to do with security settings for IIS or SMTP Server. Can anybody help me, because I am getting desperate. I have also looked it up on the web but I get a lot of stuff that I have tried but none of the...
2
2657
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 dotnet code plz.... help me
5
5305
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 itself. I thought this would be just a matter of using the $smtp->datasend($POSTvalues) with the $values coming from the names on the web page posting the data. Can someone show me what the correct code snippet would be? Here is my code: ...
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.