Forum Moderators: open

Message Too Old, No Replies

problem in sending attachment using Persists object

         

sunitha_mvd

2:43 am on Oct 28, 2003 (gmt 0)

10+ Year Member



Hello!Matt

when i am giving like this

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.From = "sunitha@mvd.com.my"
Mail.FromName = "Mail with Attachment "
Mail.Host = "mvd.com.my"
Mail.Subject = "Mail Check"

ss = "info@mvd.com.my"
Mail.AddAddress ss
Mail.Body = "Customer Details Here"
stPath = Server.MapPath("sample.txt")
Mail.AddAttachment stPath

this sample.txt file is there in my server(as i have already uploaded that file).

i am getting error like this.
please till me where i am going wrong?

Persits.MailSender.4 error '800a0007'

The system cannot find the file specified.

/uploadpersists.asp, line 102

regards,
sunitha.

sunitha_mvd

3:10 am on Oct 28, 2003 (gmt 0)

10+ Year Member



Hello!matt

I got the solution for this problem.now attachment is going.

but i am facing diffent problem.
that is cont i able to receive parameters from the previous page using Request.Form("accno") from the previous page from the same page where i am doing uploading and mail sending.

when i write this it is saying that

Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/uploadpersists.asp, line 75

Cannot use Request.Form collection after calling BinaryRead.

so,i want to send some parameters(which i send from the previous page)along with Mail.Body,how is it possible,

could you please tell be bit early.

thanks and regards,

sunitha

Zaphod Beeblebrox

12:03 pm on Oct 28, 2003 (gmt 0)

10+ Year Member



Well, like it says - you can't use Request.Form after using the Persits Upload component. It's a result of the way things work.

I suggest putting the variable in the Session object, and reading that in the upload page.

mikemarsh

2:28 pm on Oct 28, 2003 (gmt 0)



you just need to use uploader.form("FieldName") instead of request.form("FieldName") after you initiate the upload object.