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].

CommentFileSizeAuthor
#1 simplenews.668422.patch2.1 KBSutharsan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sutharsan’s picture

Status: Active » Fixed
FileSize
2.1 KB

I guess this went in a bit too fast. The attached patch fixes it and is already committed to 6.x-2.x-dev

roball’s picture

Yeah - new 6.x-2.x-dev is working fine again - thanks for this quick fix!

Status: Fixed » Closed (fixed)

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

beekerstudios’s picture

I 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

roball’s picture

Hi Beeker,

answer is in the starting post.

beekerstudios’s picture

roball, 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

roball’s picture

Are you sure you are using 6.x-2.x-dev?

beekerstudios’s picture

Nope, 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!

websites-development.com’s picture

Overwriting the theme function should also do the trick. E.g.:

function MYMODULE_simplenews_newsletter_subject($name, $title, $language) {
  return  '['. $name .'] '. $title; // or other stuff
}
monstordh’s picture

Issue summary: View changes

I'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?

monstordh’s picture

Since 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]

izus’s picture

to 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