I have SoftArtisans Fileup program on my webserver and want to use it in with my ASP form so that it will send an email with an attachment (the users CV) from the users machine.
I've used CDONTS to send emails without attachments many many times and have no problem with that, I just need to know what code to put in in order to use SA Fileup and add an attachment to the email. SoftArtisans give you examples of code that use their SMTPmail program but not CDONTS.
I also want the file to be uploaded to the server temporarily and be deleted when the email has been sent.
I have only got as far as this with the file upload code:
Set oUpl = Server.CreateObject("SoftArtisans.FileUp")
oUpl.Path = Server.MapPath("D:\inetpub\wwwroot\mywebsite\uploadtemp\")
..everything else is a mystery to me! Could anyone point me in the right direction?
All you need to do, is action the upload before, then get the filename. All you would need to do then, is send the e-mail with attachments and tell it to send the file, afterwards delete the file.
Bookmarks