The information in this article applies to:
SUMMARYThis is a simple VBScript example of how to automate sending mail through Microsoft Outlook. MORE INFORMATION
This example will work in either an Active Server Pages (ASP) page or in
Windows Script Host (WSH), as long as there is a valid Outlook User
Profile available on the system. This User Profile appears in the from
field of the mails generated. It would be possible to set up a Profile that
is used solely for sending automated messages.
http://msdn.microsoft.com/scriptingUse the following steps with ASP: Assuming you are saving it on a Web server with Active Server Page Extensions installed, you can just include the code directly into an ASP page, or save it in a file that you include into any ASP page that needs mailing capabilities. Use the following for both methods: Don't forget to change the recipient and the logon information. The logon has to be a valid Outlook user profile. NOTE: If you intend to run these scripts from the context of a service, look at article Q177851 in the REFERENCES section below.
REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base: Q193685 Sending E-mail from a Command Prompt Using IIS SMTP Service For more information about the technologies discussed here, please refer to the article "Getting Started with ASP Messaging" in the MSDN Online: http://premium.microsoft.com/msdn/library/techart/msdn_aspmess.htm Additional query words:
Keywords : kbAutomation kbScript |
Last Reviewed: July 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |