Martin Binder 0 Posted Monday at 07:29 PM Creating a draft email in the old version of Outlook was easy using the COM interface. Now that it's gone with the new version of Outlook, I need a way to pop up a draft email, where I can specify the From, To, etc, as well as the HTML body of the email. It needs to be a draft, e.g., one that can be sent. I've tried using EML files, and while I can get close, I can't reproduce exactly how it worked with the COM interface. Either the email displays view-only, or if you specify "X-Unsent: 1" in the header, it will be a draft, but you lose the HTML body. I believe you might be able to accomplish this using the Microsoft Graph API. Has anyone done this in Delphi, or can you at least point me in the right direction? Thanks! Share this post Link to post
Brian Evans 128 Posted Tuesday at 01:34 AM I don't lose the HTML body here. 1. Create a formatted draft message. Save as to EML file. 2. Edit the EML file to add the X-Unsent: 1 header. 3. Double click the EML file and it loads in new Outlook as an editable message with HTML formatting intact. The EML file does have two versions of the body - one HTML formatted and one not. Share this post Link to post