Sending Email from SwiftUI

I have been using UIViewControllerRepresentable with MFmailComposer to pre-populate an email message from a SwiftUI view. I am getting the following error in the console when sending the message:

2020-10-02 09:27:58.559227-0400 CC0 Notes2[1288:471808] [PPT] Error creating the CFMessagePort needed to communicate with PPT.

In spite of the error, the message sends successfully. On IPadOS I get a Swoosh to show that the mail was sent, but on iOS I get a successful mail send but no Swoosh sound to confirm the send. Is this error a bug? I am using XCode 12.0.1, iPadOS 14.0.1 and iPOS 14.0.1

If i can not get a Swoosh out of iOS, how can I tap into the send result to confirm to the user that the mail has been sent?
Same issue using MFMailComposeViewController. Message is sent successfully.
I'm having the same issue as poster, did you get a solution for this?

getting this same problem except I'm using ViewController as a MailComposerDelegate and it seems as soon as the mail composer is presented, I get that error. Like you said, I am still able to send the message successfully. Except, I'm unable to programmatically dismiss the mail composer, and have to swipe it away to dismiss it. I'm guessing that error means that my app doesn't even recognize that the composer is open.

Anyone got the answer?

Sending Email from SwiftUI
 
 
Q