Here is a simple Delphi procedure that uses Microsoft Outlook to send email. The new email to be sent is displayed first, and the user must press "send" before the email is sent. This is useful if the user wishes to check the email before sending, or if there are aspects of the newly generated email that cannot be easily automated, and the user needs to add additional information to the email. The code works well whether or not Outlook is already open. However, please note that the code will not work if Outlook is closed, and your installed Outlook requires any form of authentication upon launching the program. Also, if Outlook is closed and the email is sent, the sent email will not show up in the "sent" folder until the Outlook client is opened. The most relevant parts of the code are highlighted. Comments are included to explain the code. If you copy and paste the code into your program, be sure to change the form and procedure names to match your setup. For additional Outlook automation solutions, see Microsoft Outlook Automation with Delphi.


