Attach text conversion to node edit

Created on 14 August 2009, over 15 years ago
Updated 18 February 2023, about 2 years ago

Mime Mail does not let you see the plain text version of the email before you send the mail. A better system for mail modules would be to let you enter HTML into a node, preview the node as both HTML and plain text, then edit the plain text if the conversion from HTML to plain text is not satisfactory. You could then send your email knowing that both the text and HTML representations are perfect. Mime Mail could present the HTML to text conversion as something you could use during node editing.

If I set up a mail module to process a node of type mail, I could put the HTML in the body and use the teaser for the plain text version. During editing I could pass the HTML to Mime Mail for conversion. If the conversion results are not perfect, I could include a final edit of the plain text that would switch the plain text from a conversion to manual input. When I send the mail through Mime Mail, I would have to supply the plain text version along side of the HTML version.

Is this approach feasible with Mime Mail? Do any of the mail sending modules work this way? If not, what would be the best starting point for modifying modules instead of writing something from scratch?

I looked into Webmail plus and that code is growing into a monster with a gazillion module dependencies. I am using it on one site and may use it elsewhere. 83.26% of my sites really need something simpler for just sending and listing what is sent. They do need to preview both the HTML and the plain text version before sending. I am using Mime Mail to enhance email on several sites and almost every conversion is readable as plain text but people have to send text mail to check what is sent. A plain text preview would remove the test step.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

User interface

Created by

πŸ‡¦πŸ‡ΊAustralia peterx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    I understand the use case, and it is an important one, but that's not within the scope of the Mime Mail module.

    Drupal mail does not work on a basis where you compose HTML then send it. Drupal mail works by defining mail "templates" with the body and the subject already set, then sending those templates by filling in the To: and a few other things.

    What you are asking for is a way to create and preview these templates. There are projects like https://www.drupal.org/project/pet β†’ which can help in that regard.

    Mime Mail is solely for taking content and properly formatting it so that it may be sent as an HTML email message. This is not supported by Drupal core, so Mime Mail is filling in this missing functionality. Creating that template content and previewing it is not something that Mime Mail will ever do.

Production build 0.71.5 2024