Forum Moderators: open
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Mysubject " + a_variable
myMail.From=mailfrom
myMail.To="recipient1;recipient2;recipient3"
myMail.TextBody=mailtext
myMail.Send
set myMail=nothing' Redirect to success page
response.redirect ("form.asp?pass=1")
Now I was wondering if there is a straightforward and easy way to:
1. add a form field for uploading an attachment
2. sending the attachment to a location on the server on Submitting the form
3. put a line with the (name and) location of that file in the e-mail
For example:
user uploads a txt-file, it gets uploaded to /inetpub/root/attachments/mytextfile.txt and the e-mail recipients receive a line in their mail saying:
"you can download the attachment at www.somesite.com/attachments/mytextfile.txt"