![]() ![]() Wouldn’t be great if you could routinely send e-mail directly from an AutoHotkey script without using a Windows e-mail application? It just happens that you can! Directly Sending E-mail from WindowsĪs part of the Component Object Model (COM) Microsoft offers a system called Collaboration Data Objects (CDO) which makes it possible to create and mail a message by sending a string of data directly to an e-mail server without any intervening e-mail software. The process can be slow and cumbersome.It merely opens your default e-mail program and loads the text into a new e-mail window. With most e-mail apps, the Run, Mailto: command will not automatically send the e-mail.Windows Mail, Outlook, Mozilla Thunderbird, Web-based mail programs, etc). After AutoHotkey loads the application, any additional automation must fit the specific program (i.e.You must load and navigate the program every time you want to send a message.However, you do run into a few issues when using e-mail programs for sending an e-mail: In conjunction with other AutoHotkey automation techniques (such as those discussed in the chapters in Section 8.1, “Windows Automation” of the book Jack’s Motley Assortment of AutoHotkey Tips), scripts can control virtually every aspect of e-mail processing. This requires sending an e-mail via an AutoHotkey script.Ĭommonly, AutoHotkey users employ the Run, Mailto: command when automating Windows e-mail. ![]() smartphone, tablet, or non-Windows computer) without any special programming. Plus, I can view an e-mail on any device (e.g. That way I could set up the script to run automatically and push the data to me at the same time every day. It occurred to me that rather than using a Hotkey each time I wanted to view my horoscope, I would prefer to receive it each morning in an e-mail. As a demonstration, I showed how to quickly download and cull a daily horoscope from an astrology site for display in a MsgBox window. In my last blog, I wrote a short script for extracting data from a Web page without using a Web browser (“ Quick and Dirty Web Data Extraction Script“). Using Windows CDO COM, You Can Send E-mail Without Opening Your E-mail Program ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |