Doesn't play nice with Mime Mail

Created on 9 March 2016, over 9 years ago
Updated 28 July 2025, 5 days ago

I have a situation where I need to use Mime Mail for formatting rather than Mailgun.

Specifically, sending HTML emails from Webform 4.x works best if Mime Mail is used as the formatter. However, when I use Mailgun for delivery, I get the content of the email twice.

First, I get the raw content prefixed with something like this:

This is a multi-part message in MIME format. --6e063c381b751fb38443204983516a08fb2f75711 Content-Type:multipart/alternative; boundary="3df973e62908ca90cb6c2bc5dc7e87d59db6bf510" Content-Transfer-Encoding:8bit --3df973e62908ca90cb6c2bc5dc7e87d59db6bf510 Content-Type:text/plain; charset=utf-8 Content-Disposition:inline Content-Transfer-Encoding:8bit

and suffixed with this:

--3df973e62908ca90cb6c2bc5dc7e87d59db6bf510 Content-Type:text/html; charset=utf-8 Content-Disposition:inline Content-Transfer-Encoding:8Bit

After that, I get the correctly formatted content (i.e. as it looks when formatted and delivered by Mime Mail).

Not sure if it's a Mime Mail issue or a Mailgun issue. Currently having to use Mime Mail for delivery as well as formatting, which defeats the object of installing Mailgun on this particular site.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand millionleaves

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.

  • πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

    D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
    Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

    Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D7 projects.
    If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

    Thanks!

Production build 0.71.5 2024