Attaching file to an e-mail using CDONTS
Hi,
I'm looking for a script which sends e-mails using CDONTS and I would like to a attach file.
I have never done ASP
I don't know where to start.
Any help will be appreciated
Thanks in advance
H
Jeremy Freeman
www.bamps.com
Peter J. Boettcher posted this at 20:58 — 22nd November 2000.
They have: 812 posts
Joined: Feb 2000
Jeremy,
Check out the example from asp101 http://www.asp101.com/samples/viewasp.asp?file=email%2Easp . It's pretty straight forward, as long as your host supports CDONTS or your IIS Server is running SMTP you should be fine.
PJ | Are we there yet?
pjboettcher.com
jeremy posted this at 09:40 — 23rd November 2000.
They have: 6 posts
Joined: Mar 1999
Sorry, I should have made the problem clear.
I am trying to design a website with a form.
The users would fill in the form and if the users want to attach a file from their computer (hard drive), "e.g. a copy of their CV", they can do so.
Thanks in advance
Jeremy
Jeremy Freeman
www.bamps.com
Peter J. Boettcher posted this at 17:44 — 23rd November 2000.
They have: 812 posts
Joined: Feb 2000
Jeremy,
If you want to upload a file you'll either have to use Microsoft's Posting Acceptor (which I would not recommend, it's buggy as hell), purchase a 3rd party product like ASPUpload,SA FileUpload,etc , or develop your own upload component.
I can't get to specific until you know which way you're going to go, but basically the way it works is:
1. The client fills out the form and selects a file(s) to upload.
2. The form is submitted, the file(s) are uploaded and copied to the server's file system.
3. You prepare your CDONTs email, and attach the file(s) you just uploaded.
4. Send email
Done
I've used both ASPUpload & SA fileup and both work great, ASPUpload is probably a little more user friendly.
PJ | Are we there yet?
pjboettcher.com
jeremy posted this at 14:19 — 26th November 2000.
They have: 6 posts
Joined: Mar 1999
Thanks for your help - hoping that I've cracked it as a result!
Cheers
Jeremy
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.