how to reference a record set field within CDO syntax
I'm trying to attach a file to an email via vbscript and CDO.
The error is "Wrong number of arguments or invalid property assignment: 'objCDO.AttachFile'"
value from recordset is exactly as:
"D:\inetpub\Media\EQUIP_Invoices\2019\12\13\I_I_229406.pdf"
I think its the way I'm referencing the field, but I can't remember the proper syntax.
Please advise.
Mark
Set objCDO = Server.CreateObject("Cdonts.NewMail")
objCDO.BodyFormat =0 ' 0 is a plain text, 0 "zero" is a HTML
objCDO.MailFormat = 0 ' 1 is a plain text, 0 "zero" is mime format
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.