Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add date to email headers in Send function #527

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

blib
Copy link
Contributor

@blib blib commented Jun 12, 2024

Implement 'Date' header to comply with email RFC standards and enhance deliverability by satisfying spam filters.

@dbarrosop
Copy link
Member

Thanks for the PR. Which RFC are you referring to? And how does this improve deliverability? Any sources you can link to?

@blib
Copy link
Contributor Author

blib commented Jun 12, 2024

The RFC 5322 states in section 3.6.:

The only required header fields are the origination date field and
the originator address field(s). All other header fields are
syntactically optional.

Many spam filters, like SpamAssassin and Amavis, have rules that flag emails missing the required "Date" header as potential spam. I've noticed instances where emails ended up in spam folders with the header X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" due to this issue.

@dbarrosop
Copy link
Member

Perfect, thanks for the added info.

@dbarrosop dbarrosop merged commit 316e0ef into nhost:main Jun 13, 2024
5 checks passed
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.

None yet

2 participants