array( 'subject' => sprintf(T('Welcome to %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Thank you for taking the time to register at %2$s. We look forward to your contributations to making our products better. If you have any questions, please don\'t hesitate to contact the webmaster.') ), // reset password // vars: username, trackertitle, trackerurl, activation id 'password_reset' => array( 'subject' => sprintf(T('%1$s Password Reset'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, You requested this lost password email at the %2$s bug tracker. To reset your password, simply click the link below (or paste it into your browser window exactly) and enter a new password. %3$s/login.php?do=recoverpw&activator=%4$s If you did not request this, do not worry as this notice will expire in 24 hours.') ), // account approved and active // vars: username, trackertitle 'account_approved' => array( 'subject' => sprintf(T('Account Approved at %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Your account was awaiting moderation at %2$s. Today, an administrator approved your registration and you are now able to use the bug tracker fully. If you have any questions, please don\'t hesitate to contact the webmaster.') ), // activation code // vars: username, trackertitle, trackerurl, userid, activationid 'activate_account' => array( 'subject' => sprintf(T('Welcome to %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Welcome to the %2$s tracker. Before you can begin posting bug reports, you\'ll need to activate your account. To do this, please click this link: %3$s/register.php?do=activate&userid=%4$d&activator=%5$s') ), // bug notification // vars: trackertitle, bug.summary // vars: username, trackertitle, bug.summary, bug.id, trackerurl, parts 'notification' => array( 'subject' => T('%1$s Bug Notification - %2$s'), 'bodyText' => T('Hi %1$s, You are receiving this email because you have opted to get notifications for the %2$s bug tracker. The bug is "%3$s" (id: %4$d) located at %5$s/showreport.php?bugid=%4$d Here are the notices: ################################################################### %5$s ################################################################### If you no longer want to receive email from us, please log into your account and click the "My Controls" tab at the top of the screen to change email preferences. %5$s') ) ); if (!isset($_emails[$name])) { throw new Exception('Unknown email template "' . $name . '"'); } return $_emails[$name]; } ?>