Forums

This topic is locked

attach a file with CDONTS

Posted 22 Mar 2001 11:08:13
1
has voted
22 Mar 2001 11:08:13 matt stevens posted:
Hi all

Sending an email by CDONTS is working great but when i try to attach a file
i always get an error on the attach line
"
error '80004005'
Unspecified error
"

the image is on d:\images on my local hdd

this is my ( simple ) code

<%
Option Explicit

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"

objMail.From = " "
objMail.Subject = "subject"
objMail.AttachFile("d:\images\calvin.gif"
objMail.To = " "
objMail.Body = "body"
objMail.Send

set objMail = nothing
%>

Anybody knows whats the problem ???

THX in advance

Matt


Replies

Replied 22 Mar 2001 14:00:21
22 Mar 2001 14:00:21 Michael Moore replied:
here is the best info on this error. your problem is most likely addressed here.
support.microsoft.com/support/kb/articles/Q183/0/60.ASP

Replied 23 Mar 2001 10:29:31
23 Mar 2001 10:29:31 matt stevens replied:
Can't find a soluton there

Anynore ideas ??

Reply to this topic