Repository navigation
Conversation
drgrice1
force-pushed
the
email-message-ids
branch
from
November 22, 2026 03:51
ee9b0b1 to
b2ffa87
Compare
Add a Message-ID to all emails that are sent. Messages sent without a
Message-ID incur spam-filter penalties and in some cases increase the
spam score high enough so that some emails are rejected. A
`WeBWorK::Utils` helper `emailMessageId` is added that builds one from
the server's domain, and that is used for all places that emails are
sent (much like the `createEmailSenderTransportSMTP` method also used
for emails).
This is most notable for the two factor authentication setup email that
is sent if two factor authentication is enabled and `$twoFA{email_sender}`
is set. The combination of the wording asking the user to scan a QR
code, an image that is not a logo (determined by the cid), and the lack
of a Message-ID seems to frequently make the spam score high enough to
be rejected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
drgrice1
force-pushed
the
email-message-ids
branch
from
November 22, 2026 18:51
b2ffa87 to
e3709b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a Message-ID to all emails that are sent. Messages sent without a Message-ID incur spam-filter penalties and in some cases increase the spam score high enough so that some emails are rejected. A
WeBWorK::UtilshelperemailMessageIdis added that builds one from the server's domain, and that is used for all places that emails are sent (much like thecreateEmailSenderTransportSMTPmethod also used for emails).This is most notable for the two factor authentication setup email that is sent if two factor authentication is enabled and
$twoFA{email_sender}is set. The combination of the wording asking the user to scan a QR code, an image that is not a logo (determined by the cid), and the lack of a Message-ID seems to frequently make the spam score high enough to be rejected.