Plain text mails include div, classes and more

Created on 3 January 2021, about 4 years ago
Updated 23 January 2025, 12 days ago

Have a solution with this module set with plain text (the HTML field in settings not ticked).
It has worked perfectly but now when I receive a mail from the module it is included a lot of extra.

I have set my own fields for name, company, email, phone and message.

I have not changedanything, but Drupal and the module have been kept up to date.
I have tested in Mac Mail and on PC in Outlook with the same result.

This is how a typical mail looks like:

<div class="field field-contact-message--field-navn field-formatter-string field-name-field-navn field-type-string field-label-inline clearfix
has-single"><h3 class="field__label">[Your name]</h3><div class="field__items"><div class="field__item">[Your name]</div></div> </div> <div class="field field-contact-message--field-firma field-formatter-string field-name-field-firma field-type-string field-label-inline clearfix
has-single"><h3 class="field__label">[Company]</h3><div
class="field__items"><div class="field__item">[Company]</div></div>
</div>
<div class="field field-contact-message--field-mail field-formatter-email-mailto field-name-field-mail field-type-email field-label-inline clearfix has-single"><h3 class="field__label">[Your email address]</h3><div class="field__items"><div class="field__item"><a href="mailto:none@creatic.design">[Your email address]</a></div></div>
</div>
<div class="field field-contact-message--field-telefon
field-formatter-telephone-link field-name-field-telefon field-type-telephone field-label-inline clearfix has-single"><h3 class="field__label">[Your phone]</h3><div class="field__items"><div class="field__item"><a href="tel:999999">999999</a></div></div>
</div>
<div class="field field-contact-message--message field-formatter-basic-string field-name-message field-type-string-long field-label-above has-single"><h3 class="field__label">[Message]</h3><div class="field__items"><div class="field__item">[Message]</div></div> </div>

Any idea what can be wrong?

πŸ’¬ Support request
Status

Active

Version

1.19

Component

Code

Created by

πŸ‡©πŸ‡°Denmark jens peter

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.

  • πŸ‡ΈπŸ‡°Slovakia voloda86

    Swift Mailer module is abandoned now.

    What kind of module do you use with Contact Emails module to sent email body as html?

    Thanks.

  • πŸ‡©πŸ‡°Denmark jens peter

    It is a 3-year-old issue.
    I cannot remember how I got it solved but we did something, so it was usable without Swift Mailer.
    And the site is now on D10 and might soon be on D11.

Production build 0.71.5 2024