diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 20:05:26 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 20:05:26 +0000 |
| commit | fa125bd7bb8dd8cacfd996c974810f57318323c9 (patch) | |
| tree | 44ff00fc2e0dd08223f83e9bd285c490bf2b4416 /central/trunk/instadisc.php | |
| parent | 9c6d7136a17628ad1e087da138ef27c32ba251f9 (diff) | |
| download | instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.tar.gz instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.tar.bz2 instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.zip | |
Central: Tweaked the mailing system
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) |
