Simplenews 3.x Confirmation and Validation tokens

Created on 24 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

The simplenews tokens (simplenews-subscriber:* and simplenews-newsletter:*) not working in optin confirmation and validation mail.

Steps to reproduce

Install SimpleNews 3.x
Install Symfony Mailer 1.x
Subscribe on Default newsletter
The mail not contain subscriber mail and link to confirm.

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France netsliver Chelles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @netsliver
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    Please describe in more detail, especially the settings you have. What page did you use to configure your mails, and what values did you set.

  • πŸ‡«πŸ‡·France netsliver Chelles

    The URLs : admin/config/system/mailer/policy/simplenews.subscribe & admin/config/system/mailer/policy/simplenews.validate

    The body :
    We have received a request to subscribe [simplenews-subscriber:mail] at [site:url].

    To confirm please use the link below.

    [simplenews-subscriber:combined-url]

    AND

    We have received a request to manage your subscriptions for [simplenews-subscriber:mail] at [site:url].

    To proceed please use the link below.

    [simplenews-subscriber:manage-url]

  • Status changed to Active over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    Thanks. My guess is you need to enable the "Drupal Symfony Mailer Override" (symfony_mailer_bc) module - please see https://www.drupal.org/docs/contributed-modules/drupal-symfony-mailer/ge... β†’

  • πŸ‡«πŸ‡·France netsliver Chelles

    Yes it's enable and config imported

  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    It works fine for me. I'm running out of ideas for what you might be missing.

    What text format do you have for the body on /admin/config/system/mailer/policy/simplenews.subscribe? Did you edit this text format?

    You say the tokens are "not working". What do you see? Is it blank? Or is [simplenews-subscriber:mail] actually in the email?

  • πŸ‡«πŸ‡·France netsliver Chelles

    Text format is full_html
    Yes i can edit the format
    The token is replaced as blank

  • πŸ‡«πŸ‡·France netsliver Chelles

    OK it works with email html format...

    Not possible to work with other format wich have token replace filter ?

  • Status changed to Fixed over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    Great it sounds like the problem is not with this module. If you are still stuck with filters and formats maybe ask in Drupal Answers??

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024