Click to See Complete Forum and Search --> : eMail


parsh
August 11th, 2000, 11:47 AM
Hi,
I have a requirement of sending eMails from ASP page. I found that CDONTS is the best way of doing it. But i also wanted to attach files. Can i attach files that reside in my client m/c ?
If no what is the best way of uploading the files to the server from ASP page ? I read that cpshost.dll is an ISAPI extension dll of IIS which can upload files. But i didnt find the dll in my installation of IIS 4.0. Can somebody help me ?
Thanx for all your replies.

:-) Parshwanath

Johnny101
August 14th, 2000, 11:13 AM
Well - CDONTS is the cheapest way to send emails - it's free with IIS, but it's not the best. It works well though. I personally don't use it because i can't tell it what mail server to use, but if this isn't a problem for you, then it should do whatever you need.

as for attachments - you can NOT do it from the client PC without first uploading the file. I'm sure there is an ISAPI way of doing it, but i found this article -http://www.asptoday.com/articles/20000316.htm- to be very useful and more flexible than an extension. It's a pure VBScript method of uploading files within ASP - and keeping the rest of the form data with it.

good luck,

John

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org

Rick Leinecker
August 14th, 2000, 08:08 PM
If you're using ASP+, uploading now comes free with no add-ons.

The following code does it:

<input
  type="file"
  runat="server"
  id="YourProgramID"
  accept="MIMEencodings"
  maxlength="10000"
  size="widthoffilepathtextbox"
  postedfile="uploadedfile"
>