.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 5th, 2001, 11:54 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Email With Dynamic Attachment

<i><b>Originally posted by : ePoy (epoy@i4free.co.nz)</b></i><br />To all asp expert,<br /><br />I'm fairly new with asp so im not sure if my question is easy or not.<br /><br />Scenario: <br />I have this asp page (a form page) where in i'll be collecting several information base on the user selection; from that information i'll be doing a query to the database, wherein i should be able to produce a *.csv file. This *.csv then will be email as an attachment.<br /><br />Problem.<br />1. I need to email a *.csv file as an attachment, mind you the content of this file is dynamic and im not allow to save any file to a disk/HDD or not permitted to create a physical copy of the file due to security implementation of my client.<br />Is it possible to email dynamic file as an attachment? how?<br /><br />2. What will be my best appoarch in terms of handling the sequence of processes?<br /><br />Thanks you in advance....<br /><br /><br />^e^

Reply With Quote
  #2  
Old May 8th, 2001, 07:17 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : (indigo@mail.gr)</b></i><br />Hi there..<br /><br />For your email, I suggest you use the cdonts objects which comes along with IIS..<br /><br />(You can find a cdonts reference in the net)..<br /><br />What you essentially want (in pcode) is:<br /><br />1. User submits your form<br />2. You create the CSV<br />3. You create a new cdonts object and attach the csv to it (use the attachFile method provided by the cdonts).<br />4. Send the email<br />5. free the cdonts object<br />6. redirect the user to another page<br /><br />I think the best practice here is to save it to a temporary file and attach it that way. If you cannot do that then create the csv file as an array in memory, and then use MIME encoding to add the array at the end of your document. <br /><br />Check out the net, there are libraries that provide mime encoding functions.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />------------<br />ePoy at 4/5/2001 9:54:26 PM<br /><br />To all asp expert,<br /><br />I'm fairly new with asp so im not sure if my question is easy or not.<br /><br />Scenario: <br />I have this asp page (a form page) where in i'll be collecting several information base on the user selection; from that information i'll be doing a query to the database, wherein i should be able to produce a *.csv file. This *.csv then will be email as an attachment.<br /><br />Problem.<br />1. I need to email a *.csv file as an attachment, mind you the content of this file is dynamic and im not allow to save any file to a disk/HDD or not permitted to create a physical copy of the file due to security implementation of my client.<br />Is it possible to email dynamic file as an attachment? how?<br /><br />2. What will be my best appoarch in terms of handling the sequence of processes?<br /><br />Thanks you in advance....<br /><br /><br />^e^

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Email With Dynamic Attachment


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway