Created
July 16, 2013 11:25
-
-
Save udoschneider/6007897 to your computer and use it in GitHub Desktop.
A small VBS script to create an Outlook Mail from an HTML file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' OutlookHtmlMail.vbs | |
' Open a new Outlook Mail with the content of the dropped HTML file copied verbatim. | |
' (c) 2007 Udo Schneider <Udo.Schneider@homeaddress.de> | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
Set ts = fso.OpenTextFile(WScript.Arguments.Item(0)) | |
strText = ts.ReadAll | |
Set outlook = createobject("Outlook.Application") | |
Set message = outlook.createitem(olMailItem) | |
With message | |
.HTMLBody = strText | |
.Display | |
End With |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment