Why is the plain text version of a mailable not accessible? #44281
Unanswered
troygilbert
asked this question in
Q&A
Replies: 1 comment
-
Feel free to make a PR for that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mailables have a facility for building HTML and plaintext versions of themselves. Frustratingly, though, the methods are all protected. I can call render() to get the HTML version, but there doesn't seem to be any way to access the text version.
My use case is that we store the plain text version of the email as part of a log. Currently, I have to grab the HTML version and then do several very specific cleaning steps to strip HTML and cut out headers, etc.
Beta Was this translation helpful? Give feedback.
All reactions