| |
rob82
Posts: 1
Score: 0
Joined: 7/13/2003
From:
Status: offline
|
I am just writing part of a script (.vbs) to regurlary send emails with an attached file. i'm using windows me, and ive registered cdosys.dll. here's my code code: Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Automated Backup" objMessage.Sender = "..." objMessage.To = "..." objMessage.TextBody = "This is an aoutomated email to backup the attached file." objMessage.AddAttachment "..." objMessage.Send Set objMessage = Nothing with this i get the following error: line 7 char1 The parameter is incorrect code: 80070057 source: CDO.Message.1 if i comment out the attachment line it works. any help you can give me would be appreciated as i cannot see what is wrong with this, & i've searched everywhere & am very frustrated. Thanks.
|
|