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.
With the latest 6.x-2.x-dev (2009-Dec-25) version, the setting "Email subject" at admin/content/simplenews/types/edit/[TID] does not respect a custom value but instead always resets to the default "[[simplenews-newsletters-name]] [title-raw]". The actual subject in the sent mails then only contains [[simplenews-newsletters-name]] - so there is no [title-raw].
Comment | File | Size | Author |
---|---|---|---|
#1 | simplenews.668422.patch | 2.1 KB | Sutharsan |
Comments
Comment #1
Sutharsan CreditAttribution: Sutharsan commentedI guess this went in a bit too fast. The attached patch fixes it and is already committed to 6.x-2.x-dev
Comment #2
roball CreditAttribution: roball commentedYeah - new 6.x-2.x-dev is working fine again - thanks for this quick fix!
Comment #4
beekerstudios CreditAttribution: beekerstudios commentedI am using D6 with the latest simplenews dev. I do not see an option for a custom email subject for a newsletter, or in simplenews configuration.
I'd really like to remove the newsletter name, and just have the [title-raw] but I can't seem to find where that's located.
This is the one hurdle, holding me back from feeling comfortable using this as a solid mail blast tool.
Thanks,
Beeker
Comment #5
roball CreditAttribution: roball commentedHi Beeker,
answer is in the starting post.
Comment #6
beekerstudios CreditAttribution: beekerstudios commentedroball, thanks for the response.
I see no "Email subject" at the presecribed URL noted in the first post.
For instance at a URL like this:
http://www.example.org/admin/content/simplenews/types/edit/1
All I see are these fields:
Newsletter name
Description
Weight
From name
From email address
Hyperlink conversion
header
footer
body background color
css
Do I need another module or am I missing some setting?
Thanks in advance!
Beeker
Comment #7
roball CreditAttribution: roball commentedAre you sure you are using 6.x-2.x-dev?
Comment #8
beekerstudios CreditAttribution: beekerstudios commentedNope, that was the issue. Strange, that "release" is not on the module info page. I had to go to the view all releases link.
Edited: This update needs token, just incase anybody doesn't realize it like I didn't. Whoops, that's why I was seeing errors.
Fixed! YAY! Except now I am getting errors with simplenews statistics. BOO!
Comment #9
websites-development.com CreditAttribution: websites-development.com commentedOverwriting the theme function should also do the trick. E.g.:
Comment #10
monstordh CreditAttribution: monstordh commentedI'm having this same issue running D7.31 and SimpleNews 7.x-1.1. I realized that the tokens had changed so that [title-raw] (among other tokens as well) did not work any longer, so I changed it to [node:title] in my URL Patterns. I have also regenerated my newsletter issue node. However, when the email is sent, it still renders the subject line as: [[simplenews-list:name]] [title-raw]. Does anyone know what might be going on here?
Comment #11
monstordh CreditAttribution: monstordh commentedSince updating the datbase was not affecting anything, nor were any other of my attempts I decided to look at the database itself. My solution was:
Edit table "simplenews_category".
Change column "email_subject"
from
[[simplenews-list:name]] [title-raw]
to
[simplenews-category:name]: [node:title]
Comment #12
izus CreditAttribution: izus commentedto do the same changement in #11 without altering database directly, there is a user interface for that :
Go to /admin/config/services/simplenews
Edit the newsletter category, you'll find a field with '[[simplenews-category:name]] [node:title]' value, that yoy can edit and submit :)
hope this helps