Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2004, 11:03 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Attaching a string to an e-mail

Hi All,

I am writing an application to send e-mails. This application will be send attachments which will be created on the fly. I have successfully been able to write the attachment as a file out to the hard drive, then upload that file into the e-mail using CDONTS.

This strikes me as being a very clunky way to approach this problem as it involves disk IO which consumes resources and slows my application down in the long run.

So, can anyone suggest a way that I can directly attach a file created in memory onto an e-mail.

Thank you.
 
Old May 19th, 2004, 12:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

First thing is how big is the content that you want to send as mail body? If not huge, construct a string variable and store the values in it. Then send that as mail body.

That should work for you.

Cheers!



-Vijay G
 
Old May 19th, 2004, 09:40 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vijay,

Thanks for the post. My ultimate goal is a bit more complex than the original post may have led you to believe. Eventually, I want to be able to create a PDF on the fly (though an engine) then save its binary information in a PDF file and attach the file to an e-mail without ever actually creating a file on the hard drive.

Thanks,




Similar Threads
Thread Thread Starter Forum Replies Last Post
Attaching File with Mail using PHP sankar2chat Beginning PHP 1 September 24th, 2008 05:40 AM
Attaching a report to an email marcin2k Access VBA 2 February 8th, 2005 09:54 PM
CSS class Attaching NitinJoshi General .NET 1 January 24th, 2005 04:14 AM
Attaching Tables!!! NitinJoshi General .NET 3 January 21st, 2005 11:50 PM
attaching Chevrons on Toolbar skea Visual C++ 0 August 16th, 2003 03:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.