Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1) Для каждого адреса генерируем токен и пишем его например в таблицу базы данных
2) В письмо на кнопку Отписаться ставим ссылку вида site.ru/unsubscribe?token=сенерированный_токен
3) При переходе по ссылке - проверяем наличие токена в таблице и отписываем соотвествующий e-mail
Make a link to your site, such as
www.xxx.ru/unsubscribe/[email protected]&token=[token]
Generate a token based on email, or for this email
Just draw a left link that leads nowhere. No one is following this and everyone has scored.
You need this (rfc2369) document. In the header of the letter you need to enter List-Unsubscribe
List-Unsubscribe
The List-Unsubscribe field describes the command (preferably using
mail) to directly unsubscribe the user (removing them from the list).
Examples:
List-Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
List-Unsubscribe: (Use this command to get off the list)
<mailto:[email protected]?body=unsubscribe%20list>
List-Unsubscribe: <mailto:[email protected]>
List-Unsubscribe: <http://www.host.com/list.cgi?cmd=unsub&lst=list>,
<mailto:[email protected]?subject=unsubscribe>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question