catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 07-03-2006, 09:44 AM   #1 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
Sending Emails and attaching files (ASP)

I have a system that uploads an images from the users PC and then attaches it to an ASP-generated email, but it does not work.

I am using: Server.CreateObject("CDO.Message") method of sending an email.

The code to attach the file is:

objMail.AddAttachment = "d:\domains\mydomainname.co.uk\wwwroot\images\imag ename.gif"

This is the error I get:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'AddAttachment'

The file has already been uploaded to the server using an upload programme, but will not attach!

Is this a permission issue?

Last edited by orandaWeb; 07-03-2006 at 09:56 AM.
orandaWeb is offline   Reply With Quote
Old 07-03-2006, 09:56 AM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
I think you have equals sign in the wrong place. Try:

objMail.AddAttachment "d:\domains\mydomainname.co.uk\wwwroot\images\imag e name.gif"
Jacob is offline   Reply With Quote
Old 07-03-2006, 09:57 AM   #3 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
So simple!!

Thank you very much.
orandaWeb is offline   Reply With Quote
Old 25-04-2006, 05:35 PM   #4 (permalink)
Registered User
 
Join Date: Apr 2006
Posts: 1
semding mail with attchment(ASP)

i have using mail attachment cdonts.newmail method:
but this error is display

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'AddAttachment'

i don't idea pls tell me
the code is given




set mail=CreateObject("CDONTS.NewMail")
mail.From=email

mail.To="chingoutham@yahoo.co.in"
mail.Subject="Mail Attachment"
mail.Body=body
'mail.attach="logout.htm"
'myMail.AddAttachment "D:\Gouthaman\Gouthaman\goutham\example site.txt"
mail.AddAttachment"simple\openastextstream.txt"

mail.Send
set mail=Nothing
response.Redirect("thanx.html")
'response.Write("Email send")
'On Error Goto 0
'Response.Write "Mail should have been sent"
chingoutham is offline   Reply With Quote
Old 25-04-2006, 05:37 PM   #5 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Is this running on our servers?
Jacob is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:30 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.