Multiple Textareas breaks email handler

Created on 2 November 2023, about 1 year ago
Updated 18 January 2024, 10 months ago

Problem/Motivation

Hi,
I'm running into a weird issue. I have a form with multiple fields, notably 5 textarea fields. The user can submit the form just fine and the submission is stored in the database normally, but when the email handler sends out the submission, if I have 2 or more textarea fields enabled in the handler, the email comes out as a garbled string of Base64 encoded characters.

I'm wondering if there's a way to turn off Base64 encoding for emails entirely?
I'm also wondering if there was some update in the last 2-3 months that I might be able to back out to make my forms go back to working properly?

Things I've tried:
- creating an entirely new form (the problem seems to persist)
- testing with tens of submissions to figure out where the problem is occurring
- disabling our custom TWIG template for Mime mail
- Switching Mail Handlers
- changing the content of the textareas

Steps to reproduce

Create a webform, create multiple textarea elements, fill them in, setup email handler and test.

Thank you for any insight or help you can offer.

πŸ’¬ Support request
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

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

Comments & Activities

  • Issue created by @rex.barkdoll
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    If this is a regression, you could use git bisect to figure out what commit broke it. That would be very helpful in tracking down the cause.

  • πŸ‡ΊπŸ‡ΈUnited States rex.barkdoll

    I finally had more time to dig into this. It turns out that this was a MimeMail issue instead of a Webform issue. It looks like the only part Webform could have played was in creating an email that was longer than some MimeMail limit and then MimeMail would encode the email automatically, even if it wasn't set as the formatter or sender in the Mail System settings.

    I fixed the issue by disabling MimeMail and Installing the Symfony Mailer module β†’ . This HTML formats emails out of the box and doesn't seem to have the same encoding issue.

    I'm still not really sure what MimeMail's issue was, I assume there was something they implemented at some point that caused the issue, but at least it's not Webform's fault.

    Thank you again Liam for your suggestion.

  • Status changed to Fixed 11 months ago
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    I'm glad you found a fix.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024