From 7e0c7004016132e696e6c1fcd3aef927c4dd5a9a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 4 Oct 2006 05:26:32 +0000 Subject: [PATCH] r1230: Fixing registration emails --- docs/changes.txt | 4 ++++ register.php | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index b43d442..4821688 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,3 +1,7 @@ +1.1.1 +=============================== +- Registration email functions do not work because they are not ISSO2/Mail compatible [register.php] + 1.1.0 =============================== - When gettext is not installed, a "method call on unobject" error is thrown diff --git a/register.php b/register.php index 25f7821..5b3da41 100755 --- a/register.php +++ b/register.php @@ -96,9 +96,9 @@ if ($_POST['do'] == 'insert') $db->query("INSERT INTO " . TABLE_PREFIX . "useractivation (userid, activator, dateline, usergroupid) VALUES ($userid, '$activationid', " . TIMENOW . ", 2)"); - $mail->to = $bugsys->in['email']; - $mail->subject = sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle']); - $mail->body = sprintf(_('Hi %1$s, + $mail->to_add($bugsys->in['displayname'], $bugsys->in['email']); + $mail->set('subject', sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle'])); + $mail->set('bodytext', sprintf(_('Hi %1$s, Welcome to the %2$s tracker. Before you can begin posting bug reports, you\'ll need to activae your account. To do this, please click this link: @@ -109,7 +109,7 @@ Welcome to the %2$s tracker. Before you can begin posting bug reports, you\'ll n $bugsys->options['trackerurl'], $userid, $activationid - ); + )); $mail->send(); @@ -119,16 +119,16 @@ Welcome to the %2$s tracker. Before you can begin posting bug reports, you\'ll n { if ($bugsys->options['sendwelcomemail']) { - $mail->to = $bugsys->in['email']; - $mail->subject = sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle']); - $mail->body = sprintf(_('Hi %1$s, + $mail->to_add($bugsys->in['displayname'], $bugsys->in['email']); + $mail->set('subject', sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle'])); + $mail->set('bodytext', sprintf(_('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.'), $bugsys->in['displayname'], $bugsys->options['trackertitle'] - ); + )); $mail->send(); } @@ -188,16 +188,16 @@ if ($_REQUEST['do'] == 'activate') if ($bugsys->options['sendwelcomemail']) { - $mail->to = $user['email']; - $mail->subject = sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle']); - $mail->body = sprintf(_('Hi %1$s, + $mail->to_add($user['displayname'], $user['email']); + $mail->set('subject', sprintf(_('Welcome to %1$s'), $bugsys->options['trackertitle'])); + $mail->set('bodytext', sprintf(_('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.'), $user['displayname'], $bugsys->options['trackertitle'] - ); + )); $mail->send(); } -- 2.22.5