Microsoft Outlook is the most commonly used email and calendar application. Most business and home offices use Microsoft Outlook for email and for keeping up-to-date calendars, and expect their employees to have a very good working knowledge of Outlook. While mail merge can be used to send mass emails using data contained in a spreadsheet or other database, we often find it useful to use Outlook automation to programmatically send individual or mass emails to achieve a variety of tasks. Here is a collection of
Delphi lines of code that we use routinely to automate Outlook. The key requirement for using these code lines is that you have Microsoft Outlook already installed on your computer. We have tested our code with Delphi 6, Delphi XE, and Delphi 10.1 Berlin. Our code is for the Windows operating environment. We do not plan to adapt the code for other operating environments. The code has been most extensively used with Office 365 version of Outlook, however, some our code has been in use since we were using Office 2010 (and continues to work well). We hope these will be useful to you. If you find errors, encounter unhandled errors/exceptions, or have suggestions,
please let us know.