I want to develop a plugin that sends emails using the SMTP protocol and, upon successful sending, saves the email to the sent mailbox via the IMAP protocol. If sending fails, the email should be saved to the drafts folder using the IMAP protocol.
However, I haven't found a way to read the raw text of the email. Thank you.
I want to develop a plugin that sends emails using the SMTP protocol and, upon successful sending, saves the email to the sent mailbox via the IMAP protocol. If sending fails, the email should be saved to the drafts folder using the IMAP protocol.
However, I haven't found a way to read the raw text of the email. Thank you.