From d18c621bcf038f172141bd302911a313e6f5c30b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 12 Dec 2008 12:11:35 -0500 Subject: more information in subscription notices darcs-hash:20081212171135-84dde-543176e3a8190699e44fc896ba90f6ea776057d4.gz --- lib/mail.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'lib/mail.php') diff --git a/lib/mail.php b/lib/mail.php index a7cbab858..c90140d3c 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -112,16 +112,25 @@ function mail_subscribe_notify_profile($listenee, $other) { $recipients = $listenee->email; $headers['From'] = mail_notify_from(); $headers['To'] = $name . ' <' . $listenee->email . '>'; - $headers['Subject'] = sprintf(_('%1$s is now listening to your notices on %2$s.'), $other->getBestName(), + $headers['Subject'] = sprintf(_('%1$s is now listening to your notices on %2$s.'), + $other->getBestName(), common_config('site', 'name')); $body = sprintf(_('%1$s is now listening to your notices on %2$s.'."\n\n". "\t".'%3$s'."\n\n". - 'Faithfully yours,'."\n".'%4$s.'."\n"), - $long_name, - common_config('site', 'name'), - $other->profileurl, - common_config('site', 'name')); - + '%4$s'. + '%5$s'. + '%6$s'. + "\n".'Faithfully yours,'."\n".'%7$s.'."\n\n". + "----\n". + "Change your email address or notification options at %8$s"), + $long_name, + common_config('site', 'name'), + $other->profileurl, + ($other->location) ? sprintf(_("Location: %s\n"), $other->location) : '', + ($other->homepage) ? sprintf(_("Homepage: %s\n"), $other->homepage) : '', + ($other->bio) ? sprintf(_("Bio: %s\n\n"), $other->bio) : '', + common_config('site', 'name'), + common_local_url('emailsettings')); // reset localization common_init_locale(); mail_send($recipients, $headers, $body); -- cgit v1.2.3-54-g00ecf