Home
last modified time | relevance | path

Searched hist:"7 c7659d2eb48c7a17b9c70dcf5eb152a51da1610" (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/inc/
H A DMailer.class.php7c7659d2eb48c7a17b9c70dcf5eb152a51da1610 Tue Aug 30 18:29:51 UTC 2022 Philipp Specht <philipp.specht@gmail.com> Add Message-ID to all mails

RFC 5322 specifies that all mails SHOULD have a Message-ID field. While
originating SMTP servers MAY (as per RFC 5321) add a missing Message-ID,
this behavior is not mandatory.
Multiple mail providers, e.g. Gmail, reject mails without a Message-ID
field, rendering their users unable to receive mails from a Dokuwiki
instance using a standard-conforming mail server.

This commit simply adds a random Message-ID to a mail's headers during
Mailer class initialization. With the current behavior of setHeader(),
overwriting that header happens without additional changes, should
another Message-ID be necessary, warranted or desired.