I need to use vbscript to send email:

I try to use CDO but don't know how to declare the CDOSYS.DLL . Is it a way
to declare it ?

I use the MAPI system to but have problems with it .

Did you have any idea about where i can find informations about this ?

THanks

Re: vbscript and sending email by Jeff

Jeff
Fri Dec 19 09:07:38 CST 2003

I've used the following with success:

Set objEmail = CreateObject("CDO.Message")
objEmail.From = "someone@somedomain"
objEmail.To = me@mydomain
objEmail.Subject = "test message"
'objEmail.AddAttachment "c:\attachment.txt"
objEmail.textbody = "Text of message goes here"
objEmail.Send

Run the script on a machine with a SMTP server running...


"guigui" <zerze@zerez.fr> wrote in message
news:3fe30e25$0$28682$626a54ce@news.free.fr...
> I need to use vbscript to send email:
>
> I try to use CDO but don't know how to declare the CDOSYS.DLL . Is it a
way
> to declare it ?
>
> I use the MAPI system to but have problems with it .
>
> Did you have any idea about where i can find informations about this ?
>
> THanks
>
>