Capitalize the Email Headers

Created on 6 May 2023, over 1 year ago

Problem/Motivation

The headers are currently lowercase:

$headers = [
  'content-type' => 'text/html',
  'MIME-Version' => '1.0',
  'reply-to' => $replyTo,
  'from' => $this->siteConfig->get('name') . ' <' . $from . '>',
];

And in `send_emails_mail()`, we just set the message's headers to these exact values.

They should be uppercase, see: https://www.iana.org/assignments/message-headers/message-headers.xhtml

Proposed resolution

Uppercase the header values.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada Nathan Tsai

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

Comments & Activities

Production build 0.71.5 2024