diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-12 12:11:35 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-12 12:11:35 -0500 |
commit | d18c621bcf038f172141bd302911a313e6f5c30b (patch) | |
tree | ecccdbebda197b913288cc7b5e5dc77469db6b1e /lib/mail.php | |
parent | 563a9e64beb7f1183b2c31943b7533481ae5da97 (diff) |
more information in subscription notices
darcs-hash:20081212171135-84dde-543176e3a8190699e44fc896ba90f6ea776057d4.gz
Diffstat (limited to 'lib/mail.php')
-rw-r--r-- | lib/mail.php | 23 |
1 files changed, 16 insertions, 7 deletions
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); |