Forums
This topic is locked
Attach file to email
22 Aug 2003 22:38:46 M B posted:
Hello all,I'm using ASP VBScript for my web pages. One of the pages sends reminder emails to a list of students. This page has 2 fields for the user to specify; the subject of the email and its content. I would like to add another field by which the user can attach a file to this email message.
I am using CDONTS and know of the AttachFile method. Does anyone know how to go about setting this up? Are there any settings involved on the server-side coz my attempts to execute the AttachFile method are resulting in "Error 8000405; Unspecified error " messages.
Any help would be appreciated.
J
Replies
Replied 23 Aug 2003 01:41:31
23 Aug 2003 01:41:31 M B replied:
Update on the message:
Here's the setup of the pages:
I have page 1 which accepts text for email subject and body from the user. This page then submits to another page (page 2) which runs the email script. This script uses Request.Querystring to read the text values for subject and body from page 1.
This setup used to work fine until the point I added the file attachment field with a Browse button on page 1 and included the AttachFile method on page 2.
I have tried everything there is on the net about AttachFile method. Nothing seems to work and I keep getting the error message "error 8000405, Unspecified error". The message points to the objNewMail.AttachFile line in the script.
Any ideas???
J
Here's the setup of the pages:
I have page 1 which accepts text for email subject and body from the user. This page then submits to another page (page 2) which runs the email script. This script uses Request.Querystring to read the text values for subject and body from page 1.
This setup used to work fine until the point I added the file attachment field with a Browse button on page 1 and included the AttachFile method on page 2.
I have tried everything there is on the net about AttachFile method. Nothing seems to work and I keep getting the error message "error 8000405, Unspecified error". The message points to the objNewMail.AttachFile line in the script.
Any ideas???
J