RE: Atachment not working with Mailer.PersistsMail in ASP

  • From: "Michael B. Smith" <michael@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Tue, 21 Jun 2005 07:17:45 -0400

ASP code runs at the server.

You'll need to transfer the file to the server. 

-----Original Message-----
From: Arnab Ghosh [mailto:arny_gn@xxxxxxxxxxx] 
Sent: Tuesday, June 21, 2005 3:04 AM
To: [ExchangeList]
Subject: [exchangelist] Atachment not working with Mailer.PersistsMail
in ASP

I am using an ASP form to enter personal data and a file attachment
which is being sent through an email application. I am using an file
type input in the form to browse & attach a file & the following code
for sending

set mymail=server.CreateObject("Persits.MailSender")
        mymail.Host = "localhost" 
        mymail.AddAddress "arnabghosh05@xxxxxxxxxxx"
        mymail.Subject="Job Application"
        mymail.AddAttachment request.form("file1")
        mymail.Body=str & str2
        mymail.IsHTML = True

file1 is the form element that is sending attached file.
Though I can see the path of the file attached if I response.the file
name but when I am actually sending the mail the following error is
System cannot find the file specified.

List Archives:
Exchange Newsletters:
Exchange FAQ:
Other Internet Software Marketing Sites:
World of Windows Networking: Leading
Network Software Directory:
No.1 ISA Server Resource Site: Windows Security
Resource Site: Network Security Library: Windows 2000/NT Fax Solutions:
You are currently subscribed to this Discussion List as:
michael@xxxxxxxxxx To unsubscribe visit
Report abuse to listadmin@xxxxxxxxxxxxxx

Other related posts: