No Code Attached Yet
avatar PhilETaylor
PhilETaylor
9 Jun 2020

Steps to reproduce the issue

Go to Admin -> Users -> Mass Mail Users

Tick "Send in HTML Mode" after reading the help which states

Send in HTML mode. Whether or not to send the Email with headers that identify it as an HTML document. Email clients that support this will render any HTML codes.

Compose mail using HTML tags

Send the email

Expected result

Email sent as HTML and renders as HTML because of correct HTML content-type header in the email.

Actual result

Email sent as plain text with wrong header

Content-Type: text/plain; charset=utf-8
Date: Tue, 9 Jun 2020 18:29:11 +0000
From: Test <phil@phil-taylor.com>
MIME-Version: 1.0
Message-ID: <KxC1Z9ohNmRpZBG4jwZo6PJJpTxKNs9v2rdNOc7uk@localhost.localdomain>
Received: from localhost.localdomain by mailhog.example (MailHog)
          id iZEbrW-062JQBGZHslpAC3SmXyvlvAbRFBXdyJWBeuQ=@mailhog.example; Tue, 09 Jun 2020 18:29:11 +0000
Return-Path: <phil@phil-taylor.com>
Subject: asd
To: "phil@phil-taylor.com" <phil@phil-taylor.com>

<test>asd</test>

Screenshot 2020-06-09 at 19 33 56

System information (as much as possible)

Additional comments

Note: Joomla 3.9.19 Sends in HTML Mode with correct headers:

Screenshot 2020-06-09 at 19 37 12

<snip>
To: 
Subject: test
X-PHP-Script: thecabanajersey.com/administrator/index.php for 87.244.90.206
X-PHP-Originating-Script: 601:class.phpmailer.php
Date: Tue, 9 Jun 2020 18:30:31 +0000
To: undisclosed-recipients:;
From: testsite <phil@phil-taylor.com>
<snip>
Message-ID: <7d3476f5416c357af43cdf24dfa9118b@thecabanajersey.com>
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
<snip>

<h1>test</h1>

avatar PhilETaylor PhilETaylor - open - 9 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Jun 2020
avatar PhilETaylor PhilETaylor - change - 9 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 9 Jun 2020
avatar richard67
richard67 - comment - 9 Jun 2020

You have to enable HTML in the mail template.

avatar richard67
richard67 - comment - 9 Jun 2020

And then in the template the HTML box needs some content.

But it might be some bug left with that.

avatar PhilETaylor
PhilETaylor - comment - 9 Jun 2020

You have to enable HTML in the mail template.

Act like a user, not a Joomla developer.

There is nothing to say this and no documentation to tell you that's the case

A user would click the box and expect it to be HTML

avatar richard67
richard67 - comment - 9 Jun 2020

Yes, documentation about mail templates has to be made, and that HTML check box in the mass mail form either has to be removed because HTML mode shall controlled with the mail template, or it has to be fixed so it works, there I agree with you.

Wanted to make an issue about that and then have forgotten about it.

Good we have one now.

avatar richard67 richard67 - change - 9 Jun 2020
Status New Confirmed
avatar richard67
richard67 - comment - 9 Jun 2020

Issue confirmed.

avatar brianteeman
brianteeman - comment - 24 May 2021

This can be closed as its no longer relevant with mail templates

avatar richard67
richard67 - comment - 24 May 2021

Closing as stated in previous comment. Thanks @brianteeman for the hint.

avatar richard67 richard67 - change - 24 May 2021
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2021-05-24 14:30:22
Closed_By richard67
avatar richard67 richard67 - close - 24 May 2021
avatar PhilETaylor
PhilETaylor - comment - 24 May 2021

Im sorry but you are both completely wrong. This has nothing to do with Mail Template and Mail Templates is not used by the Mass Mail feature of com_users which allows an admin to type their own email and send it.

I have tested again today and again I can replicate the issue.

Content-Type: text/plain; charset=utf-8
Date: Mon, 24 May 2021 14:34:05 +0000
From: Joomla4 <phil@phil-taylor.com>
MIME-Version: 1.0
Message-ID: <FRNMKxxGnpucbVpnv1DA7PlsRG7Y4m0dTUxRst9yoQA@localhost.localdomain>
Received: from localhost.localdomain by mailhog.example (MailHog)
          id XTyVLw-TMnpCELjDviFbxW6k1Z_c5sE74wpYsxrqu2o=@mailhog.example; Mon, 24 May 2021 14:34:05 +0000
Return-Path: <phil@phil-taylor.com>
Subject: asdfasdf
To: Joomla4 <phil@phil-taylor.com>

<h1>test</h1>

Screenshot 2021-05-24 at 15 35 05

avatar richard67 richard67 - change - 24 May 2021
Status Closed New
Closed_Date 2021-05-24 14:30:22
Closed_By richard67
avatar richard67 richard67 - reopen - 24 May 2021
avatar PhilETaylor
PhilETaylor - comment - 24 May 2021

Yes, documentation about mail templates has to be made, and that HTML check box in the mass mail form either has to be removed because HTML mode shall controlled with the mail template, or it has to be fixed so it works, there I agree with you.

Wanted to make an issue about that and then have forgotten about it.

avatar PhilETaylor
PhilETaylor - comment - 24 May 2021

Plus - if Mail Template is set to BOTH (Plain and HTML) then how on earth is a Mass Email on this screen meant to be created in two modes so that its inserted with the {BODY} tag into the mail template? ... there is a lot of work needed here to make this compatible with mail templates :-(

avatar richard67
richard67 - comment - 24 May 2021

Plus - if Mail Template is set to BOTH (Plain and HTML) then how on earth is a Mass Email on this screen meant to be created in two modes so that its inserted with the {BODY} tag into the mail template?

Multi-part MIME should be used, as far as I remember. text part coming from the text template and html part from the html template of a mail template.

avatar brianteeman
brianteeman - comment - 24 May 2021

sorry I confused this with private messges

avatar PhilETaylor
PhilETaylor - comment - 24 May 2021

Multi-part MIME should be used, as far as I remember. text part coming from the text template and html part from the html template of a mail template.

But... the Mail Template just has a place holder for the {BODY} that is provided the text your type in this text area... you only get one text area to type in and that same text is injected into the plain and html mail template ... so still impossible for me to send a nicely formatted email if BOTH is enabled in Mail Templates.

This checkbox on the right is totally misleading and no longer actually used - the only use this has right now is that if its NOT checked, then the input is filtered to remove html formatting...

Like I said, there is a lot of work needed here to make this compatible with mail templates :-(

avatar PhilETaylor
PhilETaylor - comment - 24 May 2021

sorry I confused this with private messges

Again not sure why you would - Private Messages dont use Mail Templates at all and are always HTML as they have a WYSIWYG Editor for their construction.

avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:39:46
Closed_By PhilETaylor
Labels Added: No Code Attached Yet
Removed: ?
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022
avatar rinenweb
rinenweb - comment - 28 Nov 2024

Issue is still replicated after 2,5 years. I agree the "Send in HTML Mode" checkbox on the right is totally misleading if it doesn't serve the intended purpose. Mass mail should either send the message in HTML when this checkbox is checked or this checkbox should be removed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29536.

Add a Comment

Login with GitHub to post a comment