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.
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
Comment #1
jdwfly CreditAttribution: jdwfly commentedDrop this into your template.php. Clear your caches and send a test email to check if it works. (Worked for me)
I took the brackets out and made it a hyphen. You could do whatever you want with this.
Comment #3
mmgg CreditAttribution: mmgg commentedThis function doesnt seem to be working for me? using most updated modules with RC6 ... also using mime mail? ? HEELLpp
Comment #4
Rob T CreditAttribution: Rob T commentedThanks foe the snippet in #1, jdwfly. It worked well in my 6.14 with most recent simplenews modules.
Comment #5
aschiwi CreditAttribution: aschiwi commentedAs 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.