Skip to content

Add a Message-ID header to all emails sent by webwork2. - #3302

Open
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:email-message-ids
Open

drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:email-message-ids

Conversation

@drgrice1

Copy link
Copy Markdown
Member

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.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant