Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
HTML based emails are displayed with the raw html code. I would like to render these emails when viewing the mail log.
Steps to reproduce
send an html email with logging enabled and view it from Maillog
Proposed resolution
Detect when and email is HTML and render it in an iFrame
Remaining tasks
implement this new feature.
User interface changes
add an option to enable this feature.
API changes
none
Data model changes
none
This is in progress. I'm am creating an issue here to be able to fork the repo and create a merge request
Issue fork maillog-3225133
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
noahott CreditAttribution: noahott at TN Integrated Solutions for MedQuest Test Prep, LLC commentedThe issue branch now contains the completed feature. Enable the option "Render HTML emails in maillog." and emails with the content type "text/html" will be rendered in an iframe.
Comment #4
DamienMcKennaThat's a pretty neat idea, thank you for putting it together.
There are currently some test coverage failures, this will need to be resolved before we can commit it.
Comment #5
noahott CreditAttribution: noahott at TN Integrated Solutions for MedQuest Test Prep, LLC commentedI'm a little lost here since I don't think I touched any of the code that these tests are running. The tests seem to fail right at the beginning with enabling the module and trying to add a user. I'm happy to keep working on this code to get it right, but can you provide any guidance as to where things might be going wrong?