View Full Version : e-mail from a script
Wraith
05-11-2001, 05:41 PM
How can I write a script that will send an e-mail, e.g. for sending responses to a questionaire back?
Thanx
Wraith
RWSchlatter
05-16-2001, 10:21 PM
J have never done this, you would have to try it for yourself:
The most current way of Microsoft to solve this problem is by using "Collaboration Data Object CDO". Start reading the doc at:
http://msdn.microsoft.com/library/psdk/cdo/_olemsg_quick_start.htm (http://msdn.microsoft.com/library/psdk/cdo/_olemsg_active_messaging_legal.htm>http://msdn.microsoft.com/library/psdk/cdo/_olemsg_active_messaging_legal.htm</a>.
Actually)
You should be able to instantiate CDO from within the WSH.
______________
Regards - Richard
Wraith
05-17-2001, 08:58 AM
Thanks, that was useful, but i can't get it to work through outlook express, it wants to use outlook. is there any way arround this? I either get an error saying that "there is no mail client, or that outlook isn't the default client", and/or a runtime error saying that it "couldn't create object 'MAPI.session'"
Thanks
Robert
RWSchlatter
05-18-2001, 12:38 AM
CDO is recent stuff and may not be installed with OE (yet), in this case use you should use MAPI.
MAPI documentation starts at:
http://msdn.microsoft.com/library/psdk/mapi/_mapi1book_adding_a_send_command_to_an_application .htm (http://msdn.microsoft.com/library/default.asp?PP=/library/toc/psdk/messaging/messaging0-2-1.xml&tocPath=messaging0-2-1&URL=/library/psdk/mapi/_mapi1book_finding_what_you_need.htm>http://msdn.microsoft.com/library/default.asp?PP=/library/toc/psdk/messaging/messaging0-2-1.xml&tocPath=messaging0-2-1&URL=/library/psdk/mapi/_mapi1book_finding_what_you_need.htm</a>
MAPI)
______________
Regards - Richard
RWSchlatter
05-26-2001, 12:54 AM
happened to find following KB article, maybe still of interest to you:
<a target="_blank" href=http://support.microsoft.com/support/kb/articles/Q221/4/95.ASP>http://support.microsoft.com/support/kb/articles/Q221/4/95.ASP</a>
______________
Regards - Richard
HansB
06-26-2001, 10:06 AM
Hi, my sugestion is to simpley use a product from http://www.greyware.com, called sendsmtp... If you're looking for an easy way out, sending SMTP mail..
/H
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.