-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mime] add DraftEmail #44311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mime] add DraftEmail #44311
Conversation
dfff60d
to
9da47c6
Compare
Some details on
|
@kbond Can you rebase on 6.1? Is it ready? |
the point brought by @kbond in #44311 (comment) is not resolved yet: how should the mailer component behave if being asked to send a DraftEmail object ? |
Rebased. Two remaining things:
|
To @GromNaN's original question. My personal use-case for setting
I agree completely if we were calling a method on the child from the parent. This is a "generic" header that can be added to any |
|
7fbb065
to
ad833aa
Compare
ad833aa refactors this to have |
Thank you @kbond. |
I've had the need to create "draft" emails pre-filled with content/attachments. User's can then download these as a
.eml
, open with their email client, manipulate, then send. Thought I'd share my solution to see if this is something that would be acceptable in core.Only needed a few minor adjustments to
Email
that I wrapped up into anDraftEmail
object:X-Unsent: 1
header (this marks the email as "draft" for clients that support this)Usage: