Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, thank you for your wonderful module!
I see that !subscriber_name
works perfectly in the body of the newsletter but do not get a value in the title of the received mail (for anonomous users) when adding:
I've tried both: !subscriber_name
or [simplenews-receiver-realname]
Is the realname perhaps not available in the title of mail?
Most appreciated :)
Comment | File | Size | Author |
---|---|---|---|
#2 | simplenews_realname.module.zip | 5.21 KB | xool |
Comments
Comment #1
Liliplanet CreditAttribution: Liliplanet commentedComment #2
xool CreditAttribution: xool as a volunteer commentedTo get the !subscriber_name work in the title you need to
change the original "Implementation of hook_mail_alter()." function:
with the following code that includes a function to alter the mail subject too:
Attached is zip file with updated simplenews_realname.module, just change it with the original one and you'll have it working. Tested with simplenews 7.x.1.1 and simplenews_realname 7.x-1.0-alpha2