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
Email sent as HTML and renders as HTML because of correct HTML content-type header in the email.
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>
Note: Joomla 3.9.19 Sends in HTML Mode with correct headers:
<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>
Labels |
Added:
?
|
And then in the template the HTML box needs some content.
But it might be some bug left with that.
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
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.
Status | New | ⇒ | Confirmed |
Issue confirmed.
This can be closed as its no longer relevant with mail templates
Closing as stated in previous comment. Thanks @brianteeman for the hint.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-24 14:30:22 |
Closed_By | ⇒ | richard67 |
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>
Status | Closed | ⇒ | New |
Closed_Date | 2021-05-24 14:30:22 | ⇒ | |
Closed_By | richard67 | ⇒ |
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.
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 :-(
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.
sorry I confused this with private messges
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 :-(
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.
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: ? |
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.
You have to enable HTML in the mail template.