|
-
May 28th, 2001, 07:47 AM
#1
Thread Starter
Frenzied Member
put an attachement with the cdont object
how can I attached a file to an email in asp!
i.e.the file will be selected with the file type input:
<input type="file">
any ideas!!
-
May 28th, 2001, 08:07 AM
#2
If you have created the CDONTS object you can use .AttachFile for sending a file within your email.
-
May 28th, 2001, 08:11 AM
#3
Thread Starter
Frenzied Member
so i can do something like:
myMail.AttachFile = request("fileToAttachPath")
just like that,
btw thanx a lot!!!!!!
-
May 28th, 2001, 08:23 AM
#4
Thread Starter
Frenzied Member
Code:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'AttachFile'
/clients/baytek/corporate/sendTo.asp, line 21
your code is not working, what i am doiing wrong!!
-
May 28th, 2001, 08:35 AM
#5
Thread Starter
Frenzied Member
ok, i had an error, now the syntax is good but not working:
that is the error:
Code:
C:\name.txt :file that i try to upload!
error '80004005'
Unspecified error
/clients/baytek/corporate/sendTo.asp, line 16
and my code:
Code:
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
Call myMail.AttachFile(request("thefile"))
myMail.From = request("FROM") 'This is the From line
myMail.To = "[email protected]" 'Put here the recipient's email address
myMail.Subject = "Request for informations"
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Body = htmlContent
myMail.Send
Set myMail = Nothing
Can i put an attachement to an email, if the attachement come
from the client side!!
-
May 28th, 2001, 09:17 AM
#6
Dont use Call by AttachFile.
Code:
myMail.AttachFile( Request("thefile") )
-
May 28th, 2001, 09:33 AM
#7
Thread Starter
Frenzied Member
i think i haveto upload it to my server and then attach it to an
email from my server.
SO, how can i upload a file to my server!!
-
May 28th, 2001, 09:59 AM
#8
-
May 28th, 2001, 10:22 AM
#9
Thread Starter
Frenzied Member
tx a lot kayoca, i'll llok intyo it~!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|