forked from PHPMailer/PHPMailer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make address clearing functions also remove entries from all_recipien…
…ts array Add doctype and charset to test output Fix error test Make test resuts a bit prettier Improve addressing tests Fix Russian and Polish corrupted language files, make sure all use UTF-8 Remove BOM from chinese language file Make sure file descriptior is closed in EncodeFile Fix private access problems to SMTP error message by adding getError function (caused by recent addition of SMTP error reporting) All unit tests now pass
- Loading branch information
Showing
7 changed files
with
63 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
<?php | ||
/** | ||
* PHPMailer language file. | ||
* Polish Version, encoding: windows-1250 | ||
* translated from english lang file ver. 1.72 | ||
* PHPMailer language file. | ||
* Polish Version | ||
*/ | ||
|
||
$PHPMAILER_LANG = array(); | ||
|
||
$PHPMAILER_LANG["provide_address"] = 'Nale¿y podaæ prawid³owy adres email Odbiorcy.'; | ||
$PHPMAILER_LANG["mailer_not_supported"] = 'Wybrana metoda wysy³ki wiadomoœci nie jest obs³ugiwana.'; | ||
$PHPMAILER_LANG["execute"] = 'Nie mo¿na uruchomiæ: '; | ||
$PHPMAILER_LANG["instantiate"] = 'Nie mo¿na wywo³aæ funkcji mail(). SprawdŸ konfiguracjê serwera.'; | ||
$PHPMAILER_LANG["authenticate"] = 'B³¹d SMTP: Nie mo¿na przeprowadziæ autentykacji.'; | ||
$PHPMAILER_LANG["from_failed"] = 'Nastêpuj¹cy adres Nadawcy jest jest nieprawid³owy: '; | ||
$PHPMAILER_LANG["recipients_failed"] = 'B³¹d SMTP: Nastêpuj¹cy odbiorcy s¹ nieprawid³owi: '; | ||
$PHPMAILER_LANG["data_not_accepted"] = 'B³¹d SMTP: Dane nie zosta³y przyjête.'; | ||
$PHPMAILER_LANG["connect_host"] = 'B³¹d SMTP: Nie mo¿na po³¹czyæ siê z wybranym hostem.'; | ||
$PHPMAILER_LANG["file_access"] = 'Brak dostêpu do pliku: '; | ||
$PHPMAILER_LANG["file_open"] = 'Nie mo¿na otworzyæ pliku: '; | ||
$PHPMAILER_LANG["encoding"] = 'Nieznany sposób kodowania znaków: '; | ||
$PHPMAILER_LANG["signing"] = 'Signing Error: '; | ||
$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; | ||
$PHPMAILER_LANG["provide_address"] = 'Należy podać prawidłowy adres email Odbiorcy.'; | ||
$PHPMAILER_LANG["mailer_not_supported"] = 'Wybrana metoda wysyłki wiadomości nie jest obsługiwana.'; | ||
$PHPMAILER_LANG["execute"] = 'Nie można uruchomić: '; | ||
$PHPMAILER_LANG["instantiate"] = 'Nie można wywołać funkcji mail(). Sprawdź konfigurację serwera.'; | ||
$PHPMAILER_LANG["authenticate"] = 'Błąd SMTP: Nie można przeprowadzić autentykacji.'; | ||
$PHPMAILER_LANG["from_failed"] = 'Następujący adres Nadawcy jest jest nieprawidłowy: '; | ||
$PHPMAILER_LANG["recipients_failed"] = 'Błąd SMTP: Następujący odbiorcy są nieprawidłowi: '; | ||
$PHPMAILER_LANG["data_not_accepted"] = 'Błąd SMTP: Dane nie zostały przyjęte.'; | ||
$PHPMAILER_LANG["connect_host"] = 'Błąd SMTP: Nie można połączyć się z wybranym hostem.'; | ||
$PHPMAILER_LANG["file_access"] = 'Brak dostępu do pliku: '; | ||
$PHPMAILER_LANG["file_open"] = 'Nie można otworzyć pliku: '; | ||
$PHPMAILER_LANG["encoding"] = 'Nieznany sposób kodowania znaków: '; | ||
$PHPMAILER_LANG['signing'] = 'Signing Error: '; | ||
$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<?php | ||
<?php | ||
/** | ||
* PHPMailer language file. | ||
* Traditional Chinese Version | ||
* @author liqwei <[email protected]> | ||
*/ | ||
|
||
$PHPMAILER_LANG = array(); | ||
|
||
$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; | ||
$PHPMAILER_LANG['mailer_not_supported'] = '發信客戶端不被支持。'; | ||
$PHPMAILER_LANG['execute'] = '無法執行:'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -515,8 +515,8 @@ function test_Error() { | |
$this->assert($this->Mail->IsError() == false, "Error found"); | ||
$this->assert($this->Mail->Send() == false, "Send succeeded"); | ||
$this->assert($this->Mail->IsError(), "No error found"); | ||
$this->assertEquals('You must provide at least one ' . | ||
'recipient email address.', $this->Mail->ErrorInfo); | ||
//Note that this is language dependent | ||
$this->assertEquals('You must provide at least one recipient email address.', $this->Mail->ErrorInfo); | ||
$this->Mail->AddAddress(get("mail_to")); | ||
$this->assert($this->Mail->Send(), "Send failed"); | ||
} | ||
|
@@ -530,6 +530,16 @@ function test_Addressing() { | |
$this->assert($this->Mail->AddBCC('[email protected]'), 'BCC addressing failed'); | ||
$this->assert(!$this->Mail->AddBCC('[email protected]'), 'BCC duplicate addressing failed'); | ||
$this->assert(!$this->Mail->AddBCC('[email protected]'), 'BCC duplicate Addressing failed (2)'); | ||
$this->Mail->ClearAddresses(); | ||
$this->assert($this->Mail->AddAddress('[email protected]'), 'Addressing after clear failed'); | ||
$this->Mail->ClearCCs(); | ||
$this->assert($this->Mail->AddAddress('[email protected]'), 'CC addressing after clear failed'); | ||
$this->Mail->ClearBCCs(); | ||
$this->assert($this->Mail->AddAddress('[email protected]'), 'BCC addressing after clear failed'); | ||
$this->Mail->AddAddress('[email protected]'); | ||
$this->Mail->AddCC('[email protected]'); | ||
$this->Mail->AddBCC('[email protected]'); | ||
$this->Mail->ClearAllRecipients(); //Not much of a test, but helps coverage | ||
} | ||
|
||
// Check that we are not missing any translations in any langauges | ||
|
@@ -600,8 +610,13 @@ function get($sName) { | |
} | ||
|
||
?> | ||
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>PHPMailer Unit Tests</title> | ||
</head> | ||
<body> | ||
<h3>phpmailer Unit Test</h3> | ||
By entering a SMTP hostname it will automatically perform tests with SMTP. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters