From 3300e665b8c2298f485aec6c13491d5a56214e5f Mon Sep 17 00:00:00 2001 From: bve-odoo Date: Fri, 13 Mar 2020 10:52:19 +0100 Subject: [PATCH] [FIX] email_marketing: unsubscribe button does not work in test mode (#596) A lot of customer are writting ticket with this issue: When sending a TEST mail marketing from a campaign, they received a 403 error - Access Denied. It's happening because the res_id is equal 0 and _valid_unsubscribe_token from mass mailing controller is expecting it to be <> 0. The res_id is given by the recipient dropdown of the mass mailing campaign that allows Odoo to match a known record in Odoo. opw-2202026 --- email_marketing/overview/manage_unsubscriptions.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/email_marketing/overview/manage_unsubscriptions.rst b/email_marketing/overview/manage_unsubscriptions.rst index 5b54741fb..31c223b4d 100644 --- a/email_marketing/overview/manage_unsubscriptions.rst +++ b/email_marketing/overview/manage_unsubscriptions.rst @@ -15,10 +15,13 @@ unsubscribing*. :align: center :alt: Blacklist in Odoo Email Marketing - Now, once the user clicks on the *Unsubscribe* link on your email, he will be redirected to the following page: +.. note:: + After clicking the unsubscribe button when using the test feature, you will be sent to + an error page (error 403 - Access Denied). If you want to be sure the link is working properly, + you should create your mass mail and then send it only to a personal email. .. image:: media/manage2.png :align: center @@ -29,7 +32,6 @@ following page: In addition to having the option of unsubscribing from specific mailing lists, the user can also blacklist himself, meaning that he will not receive *any* more emails from you. - .. note:: The mailing list has to be configured as *Public* in order to be visible for users.