Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Unable to attach fiels in mails.


Message #1 by "Krishna K Khatri" <zipcn046@i...> on Sat, 18 Aug 2001 13:33:07
I am using ASP with CDONTS for sending mails over the Internet through my 

own SMTP server. My problem is that I am not able to send attachement with 

the mail.



Normally what happens we give the following HTML tags to accept a file 

name from the user.



<Input Type='File' Name='File01'>



But when I am submitting the form, containing the above control, I am 

unable to attach the file seleceted by the user. I give,



- - - - - - - - 

- - - - - - - -

- - - - - - - -

objMail.AttachFile(Request.Form("File01"))

objMail.Send

set objMail = Nothing



I get an error "8000x400" (I don't remember the actual error number). No 

details are given with the error.



Can anybody suggest me how can I add attachments in the outgoing mails.



Reply ASAP....



Bye,

Krishna K Khatri

zipcn046@i...

Message #2 by Foster Nathaniel <nfoster@s...> on Tue, 21 Aug 2001 09:17:58 -0400
You have to upload the file to your server before you can attach it to a

mesage.  This "<Input Type=3D'File' Name=3D'File01'>" is only to chose 

a file, you can't do anything with this file when it is on the client 

computer.

Just take a look at this activeX 

http://www.websupergoo.com/abcupload-1.htm,

you can upload with it and it is simple



-----Message d'origine-----

De : Krishna K Khatri [mailto:zipcn046@i...]

Envoy=E9 : 18 August 2001 09:33

Objet : Unable to attach fiels in mails.





I am using ASP with CDONTS for sending mails over the Internet through my

own SMTP server. My problem is that I am not able to send attachement with

the mail.



Normally what happens we give the following HTML tags to accept a file

name from the user.



<Input Type='File' Name='File01'>



But when I am submitting the form, containing the above control, I am

unable to attach the file seleceted by the user. I give,



- - - - - - - -

- - - - - - - -

- - - - - - - -

objMail.AttachFile(Request.Form("File01"))

objMail.Send

set objMail = Nothing



I get an error "8000x400" (I don't remember the actual error number).

No details are given with the error.



Can anybody suggest me how can I add attachments in the outgoing mails.



Reply ASAP....



Bye,

Krishna K Khatri



Message #3 by "Krishna K Khatri" <zipcn046@i...> on Wed, 22 Aug 2001 06:09:23
Thanks for the solution, hope it will work. I will get back to you about 

the results...



Bye.




  Return to Index