tips and tricks for movable type

add entry title to notification subject line
September 07, 2002

How to add the Entry Title to the subject line of your MT notification emails (from this thread in the MT support forum).

Update 09.15.02: Looks like MT 2.5 will include this feature - so if you're patient, just hang in there a little while longer!

Open lib/MT/App/CMS.pm in a text editor (always make a backup!) and look for lines 2285 and 2315:

2285: my $name = $blog->name . ' Update';
2315: my $subj = $blog->name . ' Update';

Change to this:

2285: my $name = $blog->name . ' Update: ' . $entry->title;
2315: my $subj = $blog->name . ' Update: ' . $entry->title;

Save and upload to your server, replacing the old copy of CMS.pm.

Comments

I couldn't get this to work - did you try it out and get it to? Maybe I'll have to go back and double check that I pasted it correctly :)

by kristine | 09.11.02 09:41 AM

No, I haven't tried it. I guess I don't care whether I have the entry titles in my notification message (mainly because I tend to send one notification after adding several entries, instead of one for each entry). =P

It seemed to work for the person in the thread though. Hmmmm.

by girlie | 09.11.02 06:17 PM

Ahh... so maybe I'm just broken? ;) Tee hee, its okay, I'm not too worried about it ;)

by kristine | 09.11.02 08:50 PM

Hang in there - MT 2.5 is due to have this feature anyway, haha!

by girlie | 09.14.02 06:41 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/76)