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 | |
| parent | 9c6d7136a17628ad1e087da138ef27c32ba251f9 (diff) | |
| download | instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.tar.gz instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.tar.bz2 instadisc-fa125bd7bb8dd8cacfd996c974810f57318323c9.zip | |
Central: Tweaked the mailing system
Diffstat (limited to 'central')
| -rw-r--r-- | central/trunk/instadisc.php | 5 | ||||
| -rw-r--r-- | central/trunk/language/phpmailer.lang-en.php | 25 |
2 files changed, 28 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) |
| diff --git a/central/trunk/language/phpmailer.lang-en.php b/central/trunk/language/phpmailer.lang-en.php new file mode 100644 index 0000000..f7d4286 --- /dev/null +++ b/central/trunk/language/phpmailer.lang-en.php | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <?php | ||
| 2 | /** | ||
| 3 | * PHPMailer language file. | ||
| 4 | * English Version | ||
| 5 | */ | ||
| 6 | |||
| 7 | $PHPMAILER_LANG = array(); | ||
| 8 | |||
| 9 | $PHPMAILER_LANG["provide_address"] = 'You must provide at least one ' . | ||
| 10 | 'recipient email address.'; | ||
| 11 | $PHPMAILER_LANG["mailer_not_supported"] = ' mailer is not supported.'; | ||
| 12 | $PHPMAILER_LANG["execute"] = 'Could not execute: '; | ||
| 13 | $PHPMAILER_LANG["instantiate"] = 'Could not instantiate mail function.'; | ||
| 14 | $PHPMAILER_LANG["authenticate"] = 'SMTP Error: Could not authenticate.'; | ||
| 15 | $PHPMAILER_LANG["from_failed"] = 'The following From address failed: '; | ||
| 16 | $PHPMAILER_LANG["recipients_failed"] = 'SMTP Error: The following ' . | ||
| 17 | 'recipients failed: '; | ||
| 18 | $PHPMAILER_LANG["data_not_accepted"] = 'SMTP Error: Data not accepted.'; | ||
| 19 | $PHPMAILER_LANG["connect_host"] = 'SMTP Error: Could not connect to SMTP host.'; | ||
| 20 | $PHPMAILER_LANG["file_access"] = 'Could not access file: '; | ||
| 21 | $PHPMAILER_LANG["file_open"] = 'File Error: Could not open file: '; | ||
| 22 | $PHPMAILER_LANG["encoding"] = 'Unknown encoding: '; | ||
| 23 | $PHPMAILER_LANG["signing"] = 'Signing Error: '; | ||
| 24 | |||
| 25 | ?> | ||
