Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: alexetgus on November 09, 2018, 09:09:59 AM

Title: List-Unsubscribe
Post by: alexetgus on November 09, 2018, 09:09:59 AM
Lien vers le mod (https://custom.simplemachines.org/mods/index.php?mod=4192)

List-Unsubscribe header
by alexetgus (https://www.simplemachines.org/community/index.php?action=profile;u=363570)

* Updating for SMF 2.0.18 - V1.2 (18/02/2021)
* Updating for SMF 2.0.16 and 2.0.17 - V1.1 (04/01/2020)


This modification (for SMF 2.0.15 to 2.0.18) adds a header "List-Unsubscribe" to the e-mails sent by SMF.
This header is the unsubscribe link of a topic for notifications, if exist is. Else, it's a link to the email of the webmaster.

This header is essential to comply with the rules of good email delivery practices.

NOTE: No adjustment necessary, install and that's all!
Tested on a fresh SMF installation.



(https://i.imgur.com/5e2qvzE.png)


No link to unsubscribe (MP, new registration, ...)

(https://i.imgur.com/8MzVi2I.png)


With an unsubscribe link (new subject or new response).

(https://i.imgur.com/xidrSlW.png)


(https://i.imgur.com/DM93QfE.png)



This link also works in text format newsletters. It must appear alone on a line, with the keyword "notify".

Examples :
For unsusbscribe this newsletter, click to the link :
http://mysite.tld/notify/page.php


OR

For unsusbscribe this newsletter, click to the link :
http://mysite.tld/?notify=xxxx



https://chez-oim.org (https://chez-oim.org)  -  This mod is copylefted
https://github.com/alexetgus/List-Unsubsribe (https://github.com/alexetgus/List-Unsubsribe)
Title: Re: List-Unsubscribe
Post by: -Rock Lee- on November 09, 2018, 12:22:32 PM
It's great for me, I was just thinking about implementing something similar, very good work @alexetgus thank you!


Regards!
Title: Re: List-Unsubscribe
Post by: alexetgus on November 09, 2018, 02:40:30 PM
Thanks! :)
Title: Re: List-Unsubscribe
Post by: alexetgus on February 05, 2019, 05:00:36 AM
To contribute, go to Github! :)
https://github.com/alexetgus/List-Unsubsribe (https://github.com/alexetgus/List-Unsubsribe)