Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS + Attachment

Status
Not open for further replies.

eyal

Programmer
May 15, 2000
38
IL
Hi,
I have no problems sending Email using CDONTS on my web site, the problem is when I try to attach a file, myMail.AttachFile "strFileName"
I get an "Unspecified error" on the line above.
Any idea? is it possible that the server supports email but does not support attachments?
Thanks
Eyal
 
Looks to me like you're enclosing a variable name within quotes, unless your attachment name is really strFileName

assuming that strFileName is a variable that contains a valid filespec,

myMail.AttachFile "strFileName"
should be
myMail.AttachFile strFileName



nick bulka

 
Hi,
I tried what you suggested but I still get the same error.
Any other ideas?

Thanks
Eyal
 
.attach ("folder/'" & strfilename & "")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top