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

Support List-Unsubscribe header #7841

Open
jdarwood007 opened this issue Sep 29, 2023 · 3 comments · May be fixed by #7844
Open

Support List-Unsubscribe header #7841

jdarwood007 opened this issue Sep 29, 2023 · 3 comments · May be fixed by #7844
Labels
Mail E-mail
Milestone

Comments

@jdarwood007
Copy link
Member

Description

See RFC 2369
We should support sending List-Unsubscribe header. The work for this is already in place from GDPR unsubscribe links in newsletters. This simply extends that to include the header.

The header would look something like:

List-Unsubscribe: <$scripturl . '?action=notifyannouncements;u=' . $id_member . ';token=' . $token>
@jdarwood007 jdarwood007 added the Mail E-mail label Sep 29, 2023
@jdarwood007 jdarwood007 added this to the The future milestone Sep 29, 2023
jdarwood007 added a commit to jdarwood007/SMF that referenced this issue Oct 17, 2023
@jdarwood007 jdarwood007 linked a pull request Oct 17, 2023 that will close this issue
@VBGAMER45
Copy link
Contributor

Also FYI google is making this a requirement for sending more than 5000 emails per day
https://support.google.com/mail/answer/81126#zippy=%2Crequirements-for-sending-or-more-messages-per-day
To set up one-click unsubscribe, include both of these headers in outgoing messages:

List-Unsubscribe-Post: List-Unsubscribe=One-Click
List-Unsubscribe: <https://solarmora.com/unsubscribe/example>

@jdarwood007
Copy link
Member Author

The one click requires we pass the data for unsubscribing in the querystring. As well, it seems most providers are only accepting mailto: for it, not http:

@VBGAMER45
Copy link
Contributor

On some of my sites I do which allows both the mailto option and the url. I then check if for one click in the url if the data is posted to unsubscribed the user.
List-Unsubscribe: mailto:listunsub####@domain.com, https://domain.com/querystring&post
List-Unsubscribe-Post: List-Unsubscribe=One-Click

@Sesquipedalian Sesquipedalian modified the milestones: The future, 3.0 Alpha 5 Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mail E-mail
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants