Sorry if this has been mentioned before. I cannot find any reference to it which makes me wonder if there is something unusual about my installation of simplenews. All emails generated have the subject bracketed by [ and ] which looks ridiculous. Is this standard behaviour of simplenews, and if so how can I remove them? Thanks

Comments

jdwfly’s picture

Category: feature » support
Status: Active » Fixed

Drop this into your template.php. Clear your caches and send a test email to check if it works. (Worked for me)

function phptemplate_simplenews_newsletter_subject($name, $title, $language) {
  return  $name .' - '. $title;
}

I took the brackets out and made it a hyphen. You could do whatever you want with this.

Status: Fixed » Closed (fixed)

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

mmgg’s picture

This function doesnt seem to be working for me? using most updated modules with RC6 ... also using mime mail? ? HEELLpp

Rob T’s picture

Thanks foe the snippet in #1, jdwfly. It worked well in my 6.14 with most recent simplenews modules.

aschiwi’s picture

As of Simplenews 6.x-2.x you can change the subject line via the UI - go to admin/content/simplenews/types and edit your newsletter.