J
JVAUGHAN
I'm trying to create a script to send an email with an
attachment. Here's the script;
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "(e-mail address removed)"
objEmail.To = "(e-mail address removed)"
objEmail.Subject = "Monthly File Transfer"
objEmail.Textbody = "Here is your monthly file."
objEmail.AddAttachment = "monthlyfile.zip"
objEmail.Send
The addattachment line doesn't work. Everything else
does. I get an error message "Object doesn't support this
property or method" when I uncomment the add attachment
line. Any ideas?
attachment. Here's the script;
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "(e-mail address removed)"
objEmail.To = "(e-mail address removed)"
objEmail.Subject = "Monthly File Transfer"
objEmail.Textbody = "Here is your monthly file."
objEmail.AddAttachment = "monthlyfile.zip"
objEmail.Send
The addattachment line doesn't work. Everything else
does. I get an error message "Object doesn't support this
property or method" when I uncomment the add attachment
line. Any ideas?