diff options
Diffstat (limited to 'central/trunk/instadisc.php')
| -rw-r--r-- | central/trunk/instadisc.php | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/central/trunk/instadisc.php b/central/trunk/instadisc.php index c671316..34bf74e 100644 --- a/central/trunk/instadisc.php +++ b/central/trunk/instadisc.php | |||
| @@ -163,7 +163,7 @@ function instaDisc_phpMailer() | |||
| 163 | $mail->Username = instaDisc_getConfig('smtpUser'); | 163 | $mail->Username = instaDisc_getConfig('smtpUser'); | 
| 164 | $mail->Password = instaDisc_getConfig('smtpPass'); | 164 | $mail->Password = instaDisc_getConfig('smtpPass'); | 
| 165 | } | 165 | } | 
| 166 | $mail->Helo = $_SERVER['HTTP_HOST']; | 166 | $mail->Helo = $_SERVER['SERVER_NAME']; | 
| 167 | $mail->ClearAddresses(); | 167 | $mail->ClearAddresses(); | 
| 168 | 168 | ||
| 169 | return $mail; | 169 | return $mail; | 
| @@ -181,7 +181,8 @@ function instaDisc_sendActivationEmail($username, $password, $email) | |||
| 181 | $mail->Subject = 'InstaDisc Account Verification'; | 181 | $mail->Subject = 'InstaDisc Account Verification'; | 
| 182 | $mail->Body = "Hello, someone has recently registered an account at " . $_SERVER['HTTP_HOST'] . " with your email address. If that was you, and your chosen username IS " . $username . ", then copy the account verification code below to our Account Verification page, enter your username and press Activate!\r\n\r\n" . $penKey . "\r\n\r\nIf that was not you, copy the above code to our Account Verification page, enter the above username, and click Delete."; | 182 | $mail->Body = "Hello, someone has recently registered an account at " . $_SERVER['HTTP_HOST'] . " with your email address. If that was you, and your chosen username IS " . $username . ", then copy the account verification code below to our Account Verification page, enter your username and press Activate!\r\n\r\n" . $penKey . "\r\n\r\nIf that was not you, copy the above code to our Account Verification page, enter the above username, and click Delete."; | 
| 183 | 183 | ||
| 184 | return $mail->Send(); | 184 | $mail->Send(); | 
| 185 | return ($mail->IsError() ? $mail->ErrorInfo : true); //$mail->Send(); | ||
| 185 | } | 186 | } | 
| 186 | 187 | ||
| 187 | function instaDisc_activateAccount($username, $penKey) | 188 | function instaDisc_activateAccount($username, $penKey) | 
