Wrox Programmer Forums
|
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 March 3rd, 2004, 06:38 PM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default upload, attach and send file

Hi All

I am trying to attach a word docs via a web form and then submit it, so the that the recipient receives an email with the attached file

My understanding of ASP is basic and have been surfing the web to understand how this is done but have not been sucessful

I would really appreciate if someone could please provide me with a basic simple script that I can use to make this work as well as easily understand it

Your input and advice will be much appreciated

Thanks

ns
 
Old March 4th, 2004, 01:38 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

You'll probably need a server component like AspEmail from Persits or something. I've used that and it works pretty good for attachments.

 
Old March 4th, 2004, 01:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

There are two seperate processes here
1. Uploading the file
I have found many code examples on the web and the best I have used can be found at:
http://www.lewismoten.com/CodeLibrary/Browse/ASP/[All]/1.htm
I used the first incarnation.

2. Send an email
A good script is at:
http://www.4guysfromrolla.com/webtech/112298-1.shtml

You can modify these to work together to produce the result you want.

Try them and then post any problems on this site.

Of course you can also buy a third party component as DaveGerard suggested however this is not too difficult to accomplish by yourself if you are trying to learn ASP.



======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
 
Old March 4th, 2004, 06:38 PM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Thanks rodmcleay for your advise and direction, I was successful in tweaking the code to my advantage and also able to upload the word docs and send the email with the attachment

But when I received the email

The word docs wasn't attached to the email, rather inserted onto the page of the email in the form of a long set of numbers and alphabets

Can you or anyone advise me on this?

Thanks


ns
 
Old March 7th, 2004, 09:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Sorry ns,
Just got your message.
I have not come across this before, try posting this as a different question, In fact I am having some trouble getting it to work myself.


======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I attach a file to an email in my .vbs file savoym VBScript 3 July 2nd, 2011 08:02 AM
attach a file and save it in the databas mary25dec Pro JSP 1 December 11th, 2006 04:10 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
help try to upload file to send in e-mail aszabojr ASP.NET 1.0 and 1.1 Basics 1 August 6th, 2004 11:30 PM





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