Removing the [] from email subject

stevekerouac - June 24, 2009 - 11:54
Project:Simplenews
Version:6.x-1.0-rc6
Component:Usability
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

jdwfly - September 21, 2009 - 23:41
Category:feature request» support request
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.

#2

System Message - October 5, 2009 - 23:50
Status:fixed» closed

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

#3

mmgg - November 18, 2009 - 04:55

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

 
 

Drupal is a registered trademark of Dries Buytaert.