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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

noahott created an issue. See original summary.

noahott’s picture

The 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.

DamienMcKenna’s picture

Status: Active » Needs work

That'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.

noahott’s picture

I'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?