diff --git a/changelog.md b/changelog.md
index ed9846501..1bdd85927 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,8 +1,23 @@
# ChangeLog
-
- * Add CRAM-MD5 authentication, thanks to Elijah madden, https://github.com/okonomiyaki3000
- * Replacement of obsolete Quoted-Printable encoder with a much better implementation
- * Composer package definition
+
+ * Merge in changes from Google code 5.2.4 release
+ * Minor coding standards cleanup in SMTP class
+ * Improved unit tests, now tests S/MIME signing
+ * Travis-CI support on GitHub, runs tests with fake SMTP server
+
+## Version 5.2.4 (February 19, 2013)
+ * Fix tag and version bug.
+ * un-deprecate isSMTP(), isMail(), IsSendmail() and
+ isQmail().
+ * Numerous translation updates
+
+## Version 5.2.3 (February 8, 2013)
+ * Fix issue with older PCREs and ValidateAddress() (Bugz: 124)
+
+ * Add CRAM-MD5 authentication, thanks to Elijah madden, https://github.com/okonomiyaki3000
+ * Replacement of obsolete Quoted-Printable encoder with a much better implementation
+ * Composer package definition
+ * New language added: Hebrew
## Version 5.2.2 (December 3, 2012)
diff --git a/class.phpmailer.php b/class.phpmailer.php
index 3db0bc844..01c84e018 100644
--- a/class.phpmailer.php
+++ b/class.phpmailer.php
@@ -2,7 +2,7 @@
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
-| Version: 5.2.2 |
+| Version: 5.2.4 |
| Site: https://code.google.com/a/apache-extras.org/p/phpmailer/ |
| ------------------------------------------------------------------------- |
| Admin: Jim Jagielski (project admininistrator) |
@@ -103,7 +103,7 @@ class PHPMailer {
*/
public $ReturnPath = '';
- /**
+ /**
* Sets the Subject of the message.
* @var string
*/
@@ -390,7 +390,7 @@ class PHPMailer {
* Sets the PHPMailer Version number
* @var string
*/
- public $Version = '5.2.2';
+ public $Version = '5.2.4';
/**
* What to use in the X-Mailer header
@@ -554,7 +554,6 @@ public function IsHTML($ishtml = true) {
/**
* Sets Mailer to send message using SMTP.
* @return void
- * @deprecated
*/
public function IsSMTP() {
$this->Mailer = 'smtp';
@@ -563,7 +562,6 @@ public function IsSMTP() {
/**
* Sets Mailer to send message using PHP mail() function.
* @return void
- * @deprecated
*/
public function IsMail() {
$this->Mailer = 'mail';
@@ -572,7 +570,6 @@ public function IsMail() {
/**
* Sets Mailer to send message using the $Sendmail program.
* @return void
- * @deprecated
*/
public function IsSendmail() {
if (!stristr(ini_get('sendmail_path'), 'sendmail')) {
@@ -584,7 +581,6 @@ public function IsSendmail() {
/**
* Sets Mailer to send message using the qmail MTA.
* @return void
- * @deprecated
*/
public function IsQmail() {
if (stristr(ini_get('sendmail_path'), 'qmail')) {
@@ -736,7 +732,7 @@ public function SetFrom($address, $name = '', $auto = 1) {
*/
public static function ValidateAddress($address) {
if (defined('PCRE_VERSION')) { //Check this instead of extension_loaded so it works when that function is disabled
- if (PCRE_VERSION >= 8.0) {
+ if (version_compare(PCRE_VERSION, '8.0') >= 0) {
return (boolean)preg_match('/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', $address);
} else {
//Fall back to an older regex that doesn't need a recent PCRE
@@ -910,14 +906,14 @@ protected function SendmailSend($header, $body) {
return true;
}
- /**
- * Sends mail using the PHP mail() function.
- * @param string $header The message headers
- * @param string $body The message body
- * @throws phpmailerException
- * @access protected
- * @return bool
- */
+ /**
+ * Sends mail using the PHP mail() function.
+ * @param string $header The message headers
+ * @param string $body The message body
+ * @throws phpmailerException
+ * @access protected
+ * @return bool
+ */
protected function MailSend($header, $body) {
$toArr = array();
foreach($this->to as $t) {
@@ -2031,13 +2027,13 @@ public function Base64EncodeWrapMB($str, $lf=null) {
}
/**
- * Encode string to RFC2045 (6.7) quoted-printable format
- * @access public
- * @param string $string The text to encode
- * @param integer $line_max Number of chars allowed on a line before wrapping
- * @return string
- * @link PHP version adapted from http://www.php.net/manual/en/function.quoted-printable-decode.php#89417
- */
+ * Encode string to RFC2045 (6.7) quoted-printable format
+ * @access public
+ * @param string $string The text to encode
+ * @param integer $line_max Number of chars allowed on a line before wrapping
+ * @return string
+ * @link PHP version adapted from http://www.php.net/manual/en/function.quoted-printable-decode.php#89417
+ */
public function EncodeQP($string, $line_max = 76) {
if (function_exists('quoted_printable_encode')) { //Use native function if it's available (>= PHP5.3)
return quoted_printable_encode($string);
@@ -2048,15 +2044,15 @@ public function EncodeQP($string, $line_max = 76) {
return $string;
}
- /**
- * Wrapper to preserve BC for old QP encoding function that was removed
- * @see EncodeQP()
- * @access public
- * @param string $string
- * @param integer $line_max
- * @param bool $space_conv
- * @return string
- */
+ /**
+ * Wrapper to preserve BC for old QP encoding function that was removed
+ * @see EncodeQP()
+ * @access public
+ * @param string $string
+ * @param integer $line_max
+ * @param bool $space_conv
+ * @return string
+ */
public function EncodeQPphp($string, $line_max = 76, $space_conv = false) {
return $this->EncodeQP($string, $line_max);
}
@@ -2179,12 +2175,12 @@ public function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64',
* @param string $type MIME type.
* @return bool True on successfully adding an attachment
*/
- public function AddStringEmbeddedImage($string, $cid, $filename = '', $encoding = 'base64', $type = 'application/octet-stream') {
+ public function AddStringEmbeddedImage($string, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
// Append to $attachment array
$this->attachment[] = array(
0 => $string,
- 1 => $filename,
- 2 => basename($filename),
+ 1 => $name,
+ 2 => $name,
3 => $encoding,
4 => $type,
5 => true, // isStringAttachment
diff --git a/class.pop3.php b/class.pop3.php
index 61e8673a4..d4082a0d7 100644
--- a/class.pop3.php
+++ b/class.pop3.php
@@ -2,7 +2,7 @@
/*~ class.pop3.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
-| Version: 5.2.2 |
+| Version: 5.2.4 |
| Site: https://code.google.com/a/apache-extras.org/p/phpmailer/ |
| ------------------------------------------------------------------------- |
| Admin: Jim Jagielski (project admininistrator) |
@@ -37,7 +37,7 @@
/**
* PHP POP-Before-SMTP Authentication Class
*
- * Version 5.2.2
+ * Version 5.2.4
*
* @license: LGPL, see PHPMailer License
*
@@ -115,7 +115,7 @@ class POP3 {
* Sets the POP3 PHPMailer Version number
* @var string
*/
- public $Version = '5.2.2';
+ public $Version = '5.2.4';
/////////////////////////////////////////////////
// PROPERTIES, PRIVATE AND PROTECTED
diff --git a/class.smtp.php b/class.smtp.php
index 3e3c387ba..0545f9215 100644
--- a/class.smtp.php
+++ b/class.smtp.php
@@ -2,7 +2,7 @@
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
-| Version: 5.2.2 |
+| Version: 5.2.4 |
| Site: https://code.google.com/a/apache-extras.org/p/phpmailer/ |
| ------------------------------------------------------------------------- |
| Admin: Jim Jagielski (project admininistrator) |
@@ -64,10 +64,10 @@ class SMTP {
/**
* Sets the function/method to use for debugging output.
- * Right now we only honor "echo" or "error_log"
+ * Right now we only honor 'echo' or 'error_log'
* @var string
*/
- public $Debugoutput = "echo";
+ public $Debugoutput = 'echo';
/**
* Sets VERP use on/off (default is off)
@@ -91,7 +91,7 @@ class SMTP {
* Sets the SMTP PHPMailer Version number
* @var string
*/
- public $Version = '5.2.2';
+ public $Version = '5.2.4';
/////////////////////////////////////////////////
// PROPERTIES, PRIVATE AND PROTECTED
@@ -115,7 +115,7 @@ class SMTP {
* @param string $str
*/
private function edebug($str) {
- if ($this->Debugoutput == "error_log") {
+ if ($this->Debugoutput == 'error_log') {
error_log($str);
} else {
echo $str;
@@ -162,7 +162,7 @@ public function Connect($host, $port = 0, $tval = 30) {
// make sure we are __not__ connected
if($this->connected()) {
// already connected, generate error
- $this->error = array("error" => "Already connected to a server");
+ $this->error = array('error' => 'Already connected to a server');
return false;
}
@@ -178,18 +178,18 @@ public function Connect($host, $port = 0, $tval = 30) {
$tval); // give up after ? secs
// verify we connected properly
if(empty($this->smtp_conn)) {
- $this->error = array("error" => "Failed to connect to server",
- "errno" => $errno,
- "errstr" => $errstr);
+ $this->error = array('error' => 'Failed to connect to server',
+ 'errno' => $errno,
+ 'errstr' => $errstr);
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": $errstr ($errno)" . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ": $errstr ($errno)" . $this->CRLF . '
');
}
return false;
}
// SMTP server can take longer to respond, give longer timeout for first read
// Windows does not have support for this timeout function
- if(substr(PHP_OS, 0, 3) != "WIN") {
+ if(substr(PHP_OS, 0, 3) != 'WIN') {
$max = ini_get('max_execution_time');
if ($max != 0 && $tval > $max) { // don't bother if unlimited
@set_time_limit($tval);
@@ -201,7 +201,7 @@ public function Connect($host, $port = 0, $tval = 30) {
$announce = $this->get_lines();
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $announce . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $announce . $this->CRLF . '
');
}
return true;
@@ -220,26 +220,26 @@ public function StartTLS() {
$this->error = null; # to avoid confusion
if(!$this->connected()) {
- $this->error = array("error" => "Called StartTLS() without being connected");
+ $this->error = array('error' => 'Called StartTLS() without being connected');
return false;
}
- fputs($this->smtp_conn,"STARTTLS" . $this->CRLF);
+ fputs($this->smtp_conn, 'STARTTLS' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 220) {
$this->error =
- array("error" => "STARTTLS not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'STARTTLS not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -271,18 +271,18 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
switch ($authtype) {
case 'PLAIN':
// Start authentication
- fputs($this->smtp_conn,"AUTH PLAIN" . $this->CRLF);
+ fputs($this->smtp_conn, 'AUTH PLAIN' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "AUTH not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'AUTH not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -290,33 +290,33 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
fputs($this->smtp_conn, base64_encode("\0".$username."\0".$password) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 235) {
$this->error =
- array("error" => "Authentication not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'Authentication not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
break;
case 'LOGIN':
// Start authentication
- fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF);
+ fputs($this->smtp_conn, 'AUTH LOGIN' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "AUTH not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'AUTH not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -325,15 +325,15 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
fputs($this->smtp_conn, base64_encode($username) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "Username not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'Username not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -342,15 +342,15 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
fputs($this->smtp_conn, base64_encode($password) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 235) {
$this->error =
- array("error" => "Password not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'Password not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -367,72 +367,72 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
$temp = new stdClass();
$ntlm_client = new ntlm_sasl_client_class;
if(! $ntlm_client->Initialize($temp)){//let's test if every function its available
- $this->error = array("error" => $temp->error);
+ $this->error = array('error' => $temp->error);
if($this->do_debug >= 1) {
- $this->edebug("You need to enable some modules in your php.ini file: " . $this->error["error"] . $this->CRLF);
+ $this->edebug('You need to enable some modules in your php.ini file: ' . $this->error['error'] . $this->CRLF);
}
return false;
}
$msg1 = $ntlm_client->TypeMsg1($realm, $workstation);//msg1
- fputs($this->smtp_conn,"AUTH NTLM " . base64_encode($msg1) . $this->CRLF);
+ fputs($this->smtp_conn, 'AUTH NTLM ' . base64_encode($msg1) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "AUTH not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'AUTH not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF);
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF);
}
return false;
}
- $challenge = substr($rply,3);//though 0 based, there is a white space after the 3 digit number....//msg2
+ $challenge = substr($rply, 3);//though 0 based, there is a white space after the 3 digit number....//msg2
$challenge = base64_decode($challenge);
- $ntlm_res = $ntlm_client->NTLMResponse(substr($challenge,24,8),$password);
- $msg3 = $ntlm_client->TypeMsg3($ntlm_res,$username,$realm,$workstation);//msg3
+ $ntlm_res = $ntlm_client->NTLMResponse(substr($challenge, 24, 8), $password);
+ $msg3 = $ntlm_client->TypeMsg3($ntlm_res, $username, $realm, $workstation);//msg3
// Send encoded username
fputs($this->smtp_conn, base64_encode($msg3) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 235) {
$this->error =
- array("error" => "Could not authenticate",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'Could not authenticate',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF);
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF);
}
return false;
}
break;
case 'CRAM-MD5':
// Start authentication
- fputs($this->smtp_conn,"AUTH CRAM-MD5" . $this->CRLF);
+ fputs($this->smtp_conn, 'AUTH CRAM-MD5' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "AUTH not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'AUTH not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
// Get the challenge
- $challenge = base64_decode(substr($rply,4));
+ $challenge = base64_decode(substr($rply, 4));
// Build the response
$response = $username . ' ' . $this->hmac($challenge, $password);
@@ -441,15 +441,15 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
fputs($this->smtp_conn, base64_encode($response) . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
- array("error" => "Credentials not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'Credentials not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -479,7 +479,7 @@ private function hmac($data, $key) {
$b = 64; // byte length for md5
if (strlen($key) > $b) {
- $key = pack("H*",md5($key));
+ $key = pack('H*', md5($key));
}
$key = str_pad($key, $b, chr(0x00));
$ipad = str_pad('', $b, chr(0x36));
@@ -487,7 +487,7 @@ private function hmac($data, $key) {
$k_ipad = $key ^ $ipad ;
$k_opad = $key ^ $opad;
- return md5($k_opad . pack("H*",md5($k_ipad . $data)));
+ return md5($k_opad . pack('H*', md5($k_ipad . $data)));
}
/**
@@ -498,10 +498,10 @@ private function hmac($data, $key) {
public function Connected() {
if(!empty($this->smtp_conn)) {
$sock_status = socket_get_status($this->smtp_conn);
- if($sock_status["eof"]) {
+ if($sock_status['eof']) {
// the socket is valid but we are not connected
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> NOTICE:" . $this->CRLF . "EOF caught while checking if connected");
+ $this->edebug('SMTP -> NOTICE:' . $this->CRLF . 'EOF caught while checking if connected');
}
$this->Close();
return false;
@@ -545,9 +545,9 @@ public function Close() {
* [data]
* .
* SMTP CODE SUCCESS: 250
- * SMTP CODE FAILURE: 552,554,451,452
- * SMTP CODE FAILURE: 451,554
- * SMTP CODE ERROR : 500,501,503,421
+ * SMTP CODE FAILURE: 552, 554, 451, 452
+ * SMTP CODE FAILURE: 451, 554
+ * SMTP CODE ERROR : 500, 501, 503, 421
* @access public
* @param string $msg_data
* @return bool
@@ -557,26 +557,26 @@ public function Data($msg_data) {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Data() without being connected");
+ 'error' => 'Called Data() without being connected');
return false;
}
- fputs($this->smtp_conn,"DATA" . $this->CRLF);
+ fputs($this->smtp_conn, 'DATA' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 354) {
$this->error =
- array("error" => "DATA command not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'DATA command not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -593,9 +593,9 @@ public function Data($msg_data) {
*/
// normalize the line breaks so we know the explode works
- $msg_data = str_replace("\r\n","\n",$msg_data);
- $msg_data = str_replace("\r","\n",$msg_data);
- $lines = explode("\n",$msg_data);
+ $msg_data = str_replace("\r\n", "\n", $msg_data);
+ $msg_data = str_replace("\r", "\n", $msg_data);
+ $lines = explode("\n", $msg_data);
/* we need to find a good way to determine is headers are
* in the msg_data or if it is a straight msg body
@@ -606,31 +606,31 @@ public function Data($msg_data) {
* headers.
*/
- $field = substr($lines[0],0,strpos($lines[0],":"));
+ $field = substr($lines[0], 0, strpos($lines[0], ':'));
$in_headers = false;
- if(!empty($field) && !strstr($field," ")) {
+ if(!empty($field) && !strstr($field, ' ')) {
$in_headers = true;
}
$max_line_length = 998; // used below; set here for ease in change
- while(list(,$line) = @each($lines)) {
+ while(list(, $line) = @each($lines)) {
$lines_out = null;
- if($line == "" && $in_headers) {
+ if($line == '' && $in_headers) {
$in_headers = false;
}
// ok we need to break this line up into several smaller lines
while(strlen($line) > $max_line_length) {
- $pos = strrpos(substr($line,0,$max_line_length)," ");
+ $pos = strrpos(substr($line, 0, $max_line_length), ' ');
// Patch to fix DOS attack
if(!$pos) {
$pos = $max_line_length - 1;
- $lines_out[] = substr($line,0,$pos);
- $line = substr($line,$pos);
+ $lines_out[] = substr($line, 0, $pos);
+ $line = substr($line, $pos);
} else {
- $lines_out[] = substr($line,0,$pos);
- $line = substr($line,$pos + 1);
+ $lines_out[] = substr($line, 0, $pos);
+ $line = substr($line, $pos + 1);
}
/* if processing headers add a LWSP-char to the front of new line
@@ -643,34 +643,34 @@ public function Data($msg_data) {
$lines_out[] = $line;
// send the lines to the server
- while(list(,$line_out) = @each($lines_out)) {
+ while(list(, $line_out) = @each($lines_out)) {
if(strlen($line_out) > 0)
{
- if(substr($line_out, 0, 1) == ".") {
- $line_out = "." . $line_out;
+ if(substr($line_out, 0, 1) == '.') {
+ $line_out = '.' . $line_out;
}
}
- fputs($this->smtp_conn,$line_out . $this->CRLF);
+ fputs($this->smtp_conn, $line_out . $this->CRLF);
}
}
// message data has been sent
- fputs($this->smtp_conn, $this->CRLF . "." . $this->CRLF);
+ fputs($this->smtp_conn, $this->CRLF . '.' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 250) {
$this->error =
- array("error" => "DATA not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'DATA not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -695,19 +695,19 @@ public function Hello($host = '') {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Hello() without being connected");
+ 'error' => 'Called Hello() without being connected');
return false;
}
// if hostname for HELO was not specified send default
if(empty($host)) {
// determine appropriate default to send to server
- $host = "localhost";
+ $host = 'localhost';
}
// Send extended hello first (RFC 2821)
- if(!$this->SendHello("EHLO", $host)) {
- if(!$this->SendHello("HELO", $host)) {
+ if(!$this->SendHello('EHLO', $host)) {
+ if(!$this->SendHello('HELO', $host)) {
return false;
}
}
@@ -723,22 +723,22 @@ public function Hello($host = '') {
* @return bool
*/
private function SendHello($hello, $host) {
- fputs($this->smtp_conn, $hello . " " . $host . $this->CRLF);
+ fputs($this->smtp_conn, $hello . ' ' . $host . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER: " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER: ' . $rply . $this->CRLF . '
');
}
if($code != 250) {
$this->error =
- array("error" => $hello . " not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => $hello . ' not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -757,8 +757,8 @@ private function SendHello($hello, $host) {
* Implements rfc 821: MAIL FROM:
*
* SMTP CODE SUCCESS: 250
- * SMTP CODE SUCCESS: 552,451,452
- * SMTP CODE SUCCESS: 500,501,421
+ * SMTP CODE SUCCESS: 552, 451, 452
+ * SMTP CODE SUCCESS: 500, 501, 421
* @access public
* @param string $from
* @return bool
@@ -768,27 +768,27 @@ public function Mail($from) {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Mail() without being connected");
+ 'error' => 'Called Mail() without being connected');
return false;
}
- $useVerp = ($this->do_verp ? " XVERP" : "");
- fputs($this->smtp_conn,"MAIL FROM:<" . $from . ">" . $useVerp . $this->CRLF);
+ $useVerp = ($this->do_verp ? ' XVERP' : '');
+ fputs($this->smtp_conn, 'MAIL FROM:<' . $from . '>' . $useVerp . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 250) {
$this->error =
- array("error" => "MAIL not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'MAIL not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -812,32 +812,32 @@ public function Quit($close_on_error = true) {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Quit() without being connected");
+ 'error' => 'Called Quit() without being connected');
return false;
}
// send the quit command to the server
- fputs($this->smtp_conn,"quit" . $this->CRLF);
+ fputs($this->smtp_conn, 'quit' . $this->CRLF);
// get any good-bye messages
$byemsg = $this->get_lines();
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $byemsg . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $byemsg . $this->CRLF . '
');
}
$rval = true;
$e = null;
- $code = substr($byemsg,0,3);
+ $code = substr($byemsg, 0, 3);
if($code != 221) {
// use e as a tmp var cause Close will overwrite $this->error
- $e = array("error" => "SMTP server rejected quit command",
- "smtp_code" => $code,
- "smtp_rply" => substr($byemsg,4));
+ $e = array('error' => 'SMTP server rejected quit command',
+ 'smtp_code' => $code,
+ 'smtp_rply' => substr($byemsg, 4));
$rval = false;
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $e["error"] . ": " . $byemsg . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $e['error'] . ': ' . $byemsg . $this->CRLF . '
');
}
}
@@ -854,9 +854,9 @@ public function Quit($close_on_error = true) {
*
* Implements from rfc 821: RCPT TO:
*
- * SMTP CODE SUCCESS: 250,251
- * SMTP CODE FAILURE: 550,551,552,553,450,451,452
- * SMTP CODE ERROR : 500,501,503,421
+ * SMTP CODE SUCCESS: 250, 251
+ * SMTP CODE FAILURE: 550, 551, 552, 553, 450, 451, 452
+ * SMTP CODE ERROR : 500, 501, 503, 421
* @access public
* @param string $to
* @return bool
@@ -866,26 +866,26 @@ public function Recipient($to) {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Recipient() without being connected");
+ 'error' => 'Called Recipient() without being connected');
return false;
}
- fputs($this->smtp_conn,"RCPT TO:<" . $to . ">" . $this->CRLF);
+ fputs($this->smtp_conn, 'RCPT TO:<' . $to . '>' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 250 && $code != 251) {
$this->error =
- array("error" => "RCPT not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'RCPT not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -900,7 +900,7 @@ public function Recipient($to) {
* Implements rfc 821: RSET
*
* SMTP CODE SUCCESS: 250
- * SMTP CODE ERROR : 500,501,504,421
+ * SMTP CODE ERROR : 500, 501, 504, 421
* @access public
* @return bool
*/
@@ -909,26 +909,26 @@ public function Reset() {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called Reset() without being connected");
+ 'error' => 'Called Reset() without being connected');
return false;
}
- fputs($this->smtp_conn,"RSET" . $this->CRLF);
+ fputs($this->smtp_conn, 'RSET' . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 250) {
$this->error =
- array("error" => "RSET failed",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'RSET failed',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -947,8 +947,8 @@ public function Reset() {
* Implements rfc 821: SAML FROM:
*
* SMTP CODE SUCCESS: 250
- * SMTP CODE SUCCESS: 552,451,452
- * SMTP CODE SUCCESS: 500,501,502,421
+ * SMTP CODE SUCCESS: 552, 451, 452
+ * SMTP CODE SUCCESS: 500, 501, 502, 421
* @access public
* @param string $from
* @return bool
@@ -958,26 +958,26 @@ public function SendAndMail($from) {
if(!$this->connected()) {
$this->error = array(
- "error" => "Called SendAndMail() without being connected");
+ 'error' => 'Called SendAndMail() without being connected');
return false;
}
- fputs($this->smtp_conn,"SAML FROM:" . $from . $this->CRLF);
+ fputs($this->smtp_conn, 'SAML FROM:' . $from . $this->CRLF);
$rply = $this->get_lines();
- $code = substr($rply,0,3);
+ $code = substr($rply, 0, 3);
if($this->do_debug >= 2) {
- $this->edebug("SMTP -> FROM SERVER:" . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> FROM SERVER:' . $rply . $this->CRLF . '
');
}
if($code != 250) {
$this->error =
- array("error" => "SAML not accepted from server",
- "smtp_code" => $code,
- "smtp_msg" => substr($rply,4));
+ array('error' => 'SAML not accepted from server',
+ 'smtp_code' => $code,
+ 'smtp_msg' => substr($rply, 4));
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '
');
+ $this->edebug('SMTP -> ERROR: ' . $this->error['error'] . ': ' . $rply . $this->CRLF . '
');
}
return false;
}
@@ -998,10 +998,10 @@ public function SendAndMail($from) {
* @return bool
*/
public function Turn() {
- $this->error = array("error" => "This method, TURN, of the SMTP ".
- "is not implemented");
+ $this->error = array('error' => 'This method, TURN, of the SMTP '.
+ 'is not implemented');
if($this->do_debug >= 1) {
- $this->edebug("SMTP -> NOTICE: " . $this->error["error"] . $this->CRLF . '
');
+ $this->edebug('SMTP -> NOTICE: ' . $this->error['error'] . $this->CRLF . '
');
}
return false;
}
@@ -1029,7 +1029,7 @@ public function getError() {
* @return string
*/
private function get_lines() {
- $data = "";
+ $data = '';
$endtime = 0;
/* If for some reason the fp is bad, don't inf loop */
if (!is_resource($this->smtp_conn)) {
@@ -1040,7 +1040,7 @@ private function get_lines() {
$endtime = time() + $this->Timelimit;
}
while(is_resource($this->smtp_conn) && !feof($this->smtp_conn)) {
- $str = @fgets($this->smtp_conn,515);
+ $str = @fgets($this->smtp_conn, 515);
if($this->do_debug >= 4) {
$this->edebug("SMTP -> get_lines(): \$data was \"$data\"" . $this->CRLF . '
');
$this->edebug("SMTP -> get_lines(): \$str is \"$str\"" . $this->CRLF . '
');
@@ -1050,12 +1050,12 @@ private function get_lines() {
$this->edebug("SMTP -> get_lines(): \$data is \"$data\"" . $this->CRLF . '
');
}
// if 4th character is a space, we are done reading, break the loop
- if(substr($str,3,1) == " ") { break; }
+ if(substr($str, 3, 1) == ' ') { break; }
// Timed-out? Log and break
$info = stream_get_meta_data($this->smtp_conn);
if ($info['timed_out']) {
if($this->do_debug >= 4) {
- $this->edebug("SMTP -> get_lines(): timed-out (" . $this->Timeout . " seconds)
");
+ $this->edebug('SMTP -> get_lines(): timed-out (' . $this->Timeout . ' seconds)
');
}
break;
}
@@ -1063,7 +1063,7 @@ private function get_lines() {
if ($endtime) {
if (time() > $endtime) {
if($this->do_debug >= 4) {
- $this->edebug("SMTP -> get_lines(): timelimit reached (" . $this->Timelimit . " seconds)
");
+ $this->edebug('SMTP -> get_lines(): timelimit reached (' . $this->Timelimit . ' seconds)
');
}
break;
}
diff --git a/language/phpmailer.lang-et.php b/language/phpmailer.lang-et.php
index a79ccebd9..eee4e58e8 100644
--- a/language/phpmailer.lang-et.php
+++ b/language/phpmailer.lang-et.php
@@ -3,23 +3,24 @@
* PHPMailer language file: refer to English translation for definitive list
* Estonian Version
* By Indrek Päri
+* Revised By Elan Ruusamäe
*/
$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.';
$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.';
$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.';
-//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
-$PHPMAILER_LANG['encoding'] = 'Tundmatu Unknown kodeering: ';
+$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu';
+$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: ';
$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: ';
$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: ';
$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: ';
$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: ';
$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.';
-//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
+$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: ';
$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.';
$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.';
$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: ';
-//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
-//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
-//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
-//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
+$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: ';
+$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.';
+$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: ';
+$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: ';
diff --git a/language/phpmailer.lang-nl.php b/language/phpmailer.lang-nl.php
index 2f953e99e..d0928f526 100644
--- a/language/phpmailer.lang-nl.php
+++ b/language/phpmailer.lang-nl.php
@@ -1,24 +1,23 @@
*/
-$PHPMAILER_LANG['authenticate'] = 'SMTP Fout: authenticatie mislukt.';
-$PHPMAILER_LANG['connect_host'] = 'SMTP Fout: Kon niet verbinden met SMTP host.';
-$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Fout: Data niet geaccepteerd.';
-//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
-$PHPMAILER_LANG['encoding'] = 'Onbekende codering: ';
-$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: ';
-$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: ';
-$PHPMAILER_LANG['file_open'] = 'Bestandsfout: Kon bestand niet openen: ';
-$PHPMAILER_LANG['from_failed'] = 'De volgende afzender adressen zijn mislukt: ';
-$PHPMAILER_LANG['instantiate'] = 'Kon mail functie niet initialiseren.';
-//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
-$PHPMAILER_LANG['provide_address'] = 'Er moet tenmiste één ontvanger emailadres opgegeven worden.';
-$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.';
-$PHPMAILER_LANG['recipients_failed'] = 'SMTP Fout: De volgende ontvangers zijn mislukt: ';
-//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
-//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
-//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
-//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
+$PHPMAILER_LANG['provide_address'] = 'Er moet tenmiste één ontvanger e-mailadres opgegeven worden.';//You must provide at least one recipient email address.
+$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.';// mailer is not supported.
+$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: ';//Could not execute:
+$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.';//Could not instantiate mail function.
+$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.';//SMTP Error: Could not authenticate.
+$PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: ';//The following From address failed:
+$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: ';//SMTP Error: The following recipients failed:
+$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.';//SMTP Error: Data not accepted.
+$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.';//SMTP Error: Could not connect to SMTP host.
+$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: ';//Could not access file:
+$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: ';//File Error: Could not open file:
+$PHPMAILER_LANG['encoding'] = 'Onbekende codering: ';//Unknown encoding:
+$PHPMAILER_LANG['signing'] = 'Signeerfout: ';//Signing Error:
+$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: ';//SMTP server error:
+$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg';//Message body empty
+$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres';//Invalid address
+$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variablen niet instellen of resetten: ';//Cannot set or reset variable:
diff --git a/language/phpmailer.lang-ru.php b/language/phpmailer.lang-ru.php
index 5b0838eef..9e583dae0 100644
--- a/language/phpmailer.lang-ru.php
+++ b/language/phpmailer.lang-ru.php
@@ -7,18 +7,18 @@
$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.';
$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к серверу SMTP.';
$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.';
-//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
$PHPMAILER_LANG['encoding'] = 'Неизвестный вид кодировки: ';
$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: ';
$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: ';
$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удается открыть файл: ';
$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: ';
$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail.';
-//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
$PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один адрес e-mail получателя.';
$PHPMAILER_LANG['mailer_not_supported'] = ' - почтовый сервер не поддерживается.';
$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: отправка по следующим адресам получателей не удалась: ';
-//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
-//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
-//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
-//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
+$PHPMAILER_LANG['empty_message'] = 'Пустое тело сообщения';
+$PHPMAILER_LANG['invalid_address'] = 'Не отослано, неправильный формат email адреса: ';
+$PHPMAILER_LANG['signing'] = 'Ошибка подписывания: ';
+$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером';
+$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: ';
+$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или переустановить переменную: ';
diff --git a/language/phpmailer.lang-tr.php b/language/phpmailer.lang-tr.php
index 92474b41c..abba0818d 100644
--- a/language/phpmailer.lang-tr.php
+++ b/language/phpmailer.lang-tr.php
@@ -6,21 +6,21 @@
* ÝZYAZILIM - Elçin Özel - Can Yýlmaz - Mehmet Benlioðlu
*/
-$PHPMAILER_LANG['authenticate'] = 'SMTP Hatasý: Doðrulanamýyor.';
-$PHPMAILER_LANG['connect_host'] = 'SMTP Hatasý: SMTP hosta baðlanýlamýyor.';
-$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatasý: Veri kabul edilmedi.';
-//$PHPMAILER_LANG['empty_message'] = 'Message body empty';
-$PHPMAILER_LANG['encoding'] = 'Bilinmeyen þifreleme: ';
-$PHPMAILER_LANG['execute'] = 'Çalýþtýrýlamýyor: ';
-$PHPMAILER_LANG['file_access'] = 'Dosyaya eriþilemiyor: ';
-$PHPMAILER_LANG['file_open'] = 'Dosya Hatasý: Dosya açýlamýyor: ';
-$PHPMAILER_LANG['from_failed'] = 'Baþarýsýz olan gönderici adresi: ';
-$PHPMAILER_LANG['instantiate'] = 'Örnek mail fonksiyonu yaratýlamadý.';
-//$PHPMAILER_LANG['invalid_address'] = 'Not sending, email address is invalid: ';
-$PHPMAILER_LANG['provide_address'] = 'En az bir tane mail adresi belirtmek zorundasýnýz alýcýnýn email adresi.';
+$PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Doğrulanamıyor.';
+$PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP hosta bağlanılamıyor.';
+$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatası: Veri kabul edilmedi.';
+$PHPMAILER_LANG['empty_message'] = 'Mesaj içeriği boş';
+$PHPMAILER_LANG['encoding'] = 'Bilinmeyen şifreleme: ';
+$PHPMAILER_LANG['execute'] = 'Çalıtırılamıyor: ';
+$PHPMAILER_LANG['file_access'] = 'Dosyaya erişilemiyor: ';
+$PHPMAILER_LANG['file_open'] = 'Dosya Hatası: Dosya açılamıyor: ';
+$PHPMAILER_LANG['from_failed'] = 'Başarısız olan gönderici adresi: ';
+$PHPMAILER_LANG['instantiate'] = 'Örnek mail fonksiyonu oluşturulamadı.';
+$PHPMAILER_LANG['invalid_address'] = 'Gönderilmedi, email adresi geçersiz: ';
+$PHPMAILER_LANG['provide_address'] = 'En az bir tane mail adresi belirtmek zorundasınız alıcının email adresi.';
$PHPMAILER_LANG['mailer_not_supported'] = ' mailler desteklenmemektedir.';
-$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatasý: alýcýlara ulaþmadý: ';
-//$PHPMAILER_LANG['signing'] = 'Signing Error: ';
-//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
-//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
-//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
+$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatası: alıcılara ulaımadı: ';
+$PHPMAILER_LANG['signing'] = 'İmzalama hatası: ';
+$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP bağlantı() başarısız.';
+$PHPMAILER_LANG['smtp_error'] = 'SMTP sunucu hatası: ';
+$PHPMAILER_LANG['variable_set'] = 'Ayarlanamıyor yada sıfırlanamıyor: ';
diff --git a/test/phpmailerTest.php b/test/phpmailerTest.php
index f04af12b4..d59459c7b 100644
--- a/test/phpmailerTest.php
+++ b/test/phpmailerTest.php
@@ -721,8 +721,8 @@ function test_Html()
$this->Mail->Subject .= ": HTML only";
$this->Mail->Body = "This is a test message written in HTML. " .
- "Go to " .
- "http://phpmailer.sourceforge.net/ for new versions of " .
+ "Go to " .
+ "http://code.google.com/a/apache-extras.org/p/phpmailer/ for new versions of " .
"phpmailer. Thank you!";
$this->BuildBody();