A bit of a newbie here, trying to convert a load of UNIX
scripts to VBS on W2k server.

I want to send a mail message from a stand-alone VBS
script, and can't find anything in the docmentation about
it. I won't have an Outlook form open so can't use that
path. Can I use Outlook Express or will my customer have
to pay for Outlook? And, even then, how do I program it?
Presumably I use CreateObject("Outlook.Application") but
how do I send the mail? Or is there a MAPI interfacea of
some sort?

Thanks in advance,

Peter

Re: Sending mail via VBS by Han

Han
Fri Dec 05 09:35:16 CST 2003

Yes, one way is MAPI.

http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=e6Fv4YAbBHA
.1456%40tkmsftngp04&rnum=7&prev=/groups%3Fas_q%3Dmail%26safe%3Dimages%26ie%3
DUTF-8%26oe%3DUTF-8%26as_uauthors%3Dhp4444%40kornet.net%26lr%3D%26hl%3Den

"ptoye" <anonymous@discussions.microsoft.com> wrote in message
news:d87301c3bb20$5afa0c30$a601280a@phx.gbl...
> A bit of a newbie here, trying to convert a load of UNIX
> scripts to VBS on W2k server.
>
> I want to send a mail message from a stand-alone VBS
> script, and can't find anything in the docmentation about
> it. I won't have an Outlook form open so can't use that i
> path. Can I use Outlook Express or will my customer have
> to pay for Outlook? And, even then, how do I program it?
> Presumably I use CreateObject("Outlook.Application") but
> how do I send the mail? Or is there a MAPI interfacea of
> some sort?
>
> Thanks in advance,
>
> Peter



Re: Sending mail via VBS by TDM

TDM
Fri Dec 05 16:25:14 CST 2003


You can also send using CDO if the system is Win2K and up.

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/scrguide/sas_ent_wnhj.asp

Just in case you only have an SMTP server available ...


TDM.

"ptoye" <anonymous@discussions.microsoft.com> wrote in message
news:d87301c3bb20$5afa0c30$a601280a@phx.gbl...
> A bit of a newbie here, trying to convert a load of UNIX
> scripts to VBS on W2k server.
>
> I want to send a mail message from a stand-alone VBS
> script, and can't find anything in the docmentation about
> it. I won't have an Outlook form open so can't use that
> path. Can I use Outlook Express or will my customer have
> to pay for Outlook? And, even then, how do I program it?
> Presumably I use CreateObject("Outlook.Application") but
> how do I send the mail? Or is there a MAPI interfacea of
> some sort?
>
> Thanks in advance,
>
> Peter