473,385 Members | 1,325 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,385 software developers and data experts.

How can I have my page email a csv file created from an online form?

Les
I've just started working with ASP 5 days ago, so go easy on me.
My company needs an online form that user's can enter information into
and once submitted, will dump the user-supplied info into a csv file
and email it to the person who heads up the project. Initially, I
thought they wanted the form to save the data to a database, and after
playing all weekend, I was able to do that. Today I learned that they
prefer the emailing a csv file method instead.
Any links to tutorials on this subject or sample code with explanation
would be greatly appreciated! Again, I'm new at this and baby steps
are best :)

Thanks in advance,

Les
Jul 19 '05 #1
4 1874
Les wrote on 20 aug 2003 in microsoft.public.inetserver.asp.general:
Today I learned that they
prefer the emailing a csv file method instead.
Any links to tutorials on this subject or sample code with explanation
would be greatly appreciated! Again, I'm new at this and baby steps
are best :)


<http://www.aspfaq.com/show.asp?id=2119>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Les
Thank you for your quick response and the link.
<http://www.aspfaq.com/show.asp?id=2119> but I should have been more
explicit in my post.

As I've never done this before, I'm assuming that I can figure out how
to:

1. Write the data submitted in the form to a csv file
2. Save that to the server and then
3. Have the csv attached to an email and sent to the project manager.

My question is: can the csv file be created "on the fly" (not saved to
the server) and attached to the email which would be created from my
ASP page? I read through the aspfaq site, but was unable to find if
this were possible.

Once again thanks so much,

Les
Jul 19 '05 #3
Les wrote:
...
My question is: can the csv file be created "on the fly"
yes - in an array
(not saved to
the server) and attached to the email


no - you have to save it to the server to make it an attachment. although
you can embed the data onto the message body direct.

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #4
"Les" <in**@fluidwebz.com> wrote in message
news:dd**************************@posting.google.c om...
Thank you for your quick response and the link.
<http://www.aspfaq.com/show.asp?id=2119> but I should have been more
explicit in my post.

As I've never done this before, I'm assuming that I can figure out how
to:

1. Write the data submitted in the form to a csv file
2. Save that to the server and then
3. Have the csv attached to an email and sent to the project manager.

My question is: can the csv file be created "on the fly" (not saved to
the server) and attached to the email which would be created from my
ASP page? I read through the aspfaq site, but was unable to find if
this were possible.

Once again thanks so much,

Les


Check out the GetDecodedContentStream Method of the BodyPart(attachment)
object
http://msdn.microsoft.com/library/en...tentstream.asp

The basic premise is that all simple (versus multipart) bodyparts have
an associated stream interface. You can load content into the
bodypart(i.e. attachment) via the stream interface by using the
Write/WriteText methods. You indicated that you already know how to
retrieve the submitted file content from the Request object, but just in
case, here's an article that describes a component-less method for doing
so:

http://msdn.microsoft.com/library/en...ml/asp0900.asp

HTH
-Chris
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an...
1
by: Evan Nelson | last post by:
We are running a website on 3 W2K servers running IIS 5.0 as the webservers and using a server running under Windows Server 2003 for the database servers. All of our ASP pages are written using...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
by: j7.henry | last post by:
I am trying to pull specific data that is in a comma delimited file into a web page. So if my comma delimited file looks like: Name,Address,Zip Fred,123 Elm,66666 Mike,23 Jump,11111 I would...
1
by: steinwaygirl | last post by:
Hi all, I have been searching so hard for the answer to this, hopefully some of you all can help. I have created an HTML file with various forms - also included CSS and some javascript for...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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.