Skip to content

Provide an option to disable HTML emails - #9205

Merged
MorrisJobke merged 1 commit into
masterfrom
plaintext-emails
Apr 16, 2018
Merged

Provide an option to disable HTML emails#9205
MorrisJobke merged 1 commit into
masterfrom
plaintext-emails

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

Needs to be back ported to stable12 to fix an issue with IBM notes (see #9102).

Unit tests are included.

Fixes#9031

@MariusBluem

Copy link
Copy Markdown
Member

😘😅

* Email will be send by default with an HTML and a plain text body. This option
* allows to only send plain text emails.
*/
'mail_send_plaintext_only' => false,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to set a mail_template_class if mail_send_plaintext_only is true? Does this even work? If no - could we merge those two settings together?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you can still replace text with the template class.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understand. THX.

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@codecov

codecovBot commented Apr 16, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9205 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

@@ Coverage Diff @@## master #9205 +/- ##
============================================
+ Coverage 51.9% 51.91% +<.01% - Complexity 25354 25358 +4 
============================================
Files 1606 1606 Lines 95301 95307 +6 Branches 1394 1394 ============================================
+ Hits 49465 49475 +10 + Misses 45836 45832 -4
Impacted FilesCoverage ΔComplexity Δ
config/config.sample.php0% <0%> (ø)0 <0> (ø)⬇️
lib/private/Mail/Mailer.php61.36% <100%> (+0.44%)28 <0> (ø)⬇️
lib/private/Mail/Message.php85.52% <75%> (+6.35%)29 <1> (+4)⬆️
lib/private/Files/Cache/Propagator.php96.2% <0%> (+1.26%)16% <0%> (ø)⬇️

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobkeMorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 16, 2018
@MorrisJobke
MorrisJobke merged commit 8c085e7 into masterApr 16, 2018
@MorrisJobke
MorrisJobke deleted the plaintext-emails branch April 16, 2018 20:06
@MorrisJobkeMorrisJobke mentioned this pull request Apr 18, 2018
11 tasks
@MariusBluemMariusBluem mentioned this pull request Apr 18, 2018
3 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement "only plain-text e-mail" option

4 participants

@MorrisJobke@MariusBluem@rullzer@nickvergessen