[Demo] Send email using Microsoft Outlook COM object
Posted: Sat Dec 18, 2021 7:25 pm
We already have demo projects showing how to create an independent email client for sending HTML emails created in TRichViewEdit:
Messages are composed in a TRichView editor, and are sent using Outlook.
To use this demo, Outlook object must be imported in Delphi.
To do it, open the menu "Component | Import Component", choose "Import a Type Library", select "Microsoft Outlook 16.0 Object Library", and install it into some package.
The demo is: It allows:
- sending email (to place it in Outbox)
- saving email (in Drafts)
- printing email using Outlook.
This demo was created in Delphi 11 (but should work in Delphi XE7 and newer)
- <TRichView Dir>\ThirdParty\CleverComponents\Demos\ - send emails using CleverComponents
- https://www.trichview.com/forums/viewtopic.php?f=3&t=11 - send emails using Indy
Messages are composed in a TRichView editor, and are sent using Outlook.
To use this demo, Outlook object must be imported in Delphi.
To do it, open the menu "Component | Import Component", choose "Import a Type Library", select "Microsoft Outlook 16.0 Object Library", and install it into some package.
The demo is: It allows:
- sending email (to place it in Outbox)
- saving email (in Drafts)
- printing email using Outlook.
Images are embedded directly in email body.
This demo was created in Delphi 11 (but should work in Delphi XE7 and newer)