Skip to content

Commit

Permalink
Tag 2.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Nov 11, 2008
1 parent 40df5e6 commit fd036f3
Show file tree
Hide file tree
Showing 28 changed files with 146 additions and 85 deletions.
19 changes: 19 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@ ChangeLog

NOTE: THIS VERSION OF PHPMAILER IS DESIGNED FOR PHP5/PHP6. IT WILL NOT WORK WITH PHP4.

Version 2.3 (November 06, 2008)

* added Arabic language (many thanks to Bahjat Al Mostafa)
* removed English language from language files and made it a default within
class.phpmailer.php - if no language is found, it will default to use
the english language translation
* fixed public/private declarations
* corrected line 1728, $basedir to $directory
* added $sign_cert_file to avoid improper duplicate use of $sign_key_file
* corrected $this->Hello on line 612 to $this->Helo
* changed default of $LE to "\r\n" to comply with RFC 2822. Can be set by the user
if default is not acceptable
* removed trim() from return results in EncodeQP
* /test and three files it contained are removed from version 2.3
* fixed phpunit.php for compliance with PHP5
* changed $this->AltBody = $textMsg; to $this->AltBody = html_entity_decode($textMsg);
* We have removed the /phpdoc from the downloads. All documentation is now on
the http://phpmailer.codeworxtech.com website.

Version 2.2.1 () July 19 2008

* fixed line 1092 in class.smtp.php (my apologies, error on my part)
Expand Down
11 changes: 11 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ PHPMailer
Full Featured Email Transfer Class for PHP
==========================================

Version 2.3 (November 08, 2008)

We have removed the /phpdoc from the downloads. All documentation is now on
the http://phpmailer.codeworxtech.com website.

The phpunit.php has been updated to support PHP5.

For all other changes and notes, please see the changelog.

Donations are accepted at PayPal with our id "[email protected]".

Version 2.2 (July 15 2008)

- see the changelog.
Expand Down
41 changes: 27 additions & 14 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.2.1 |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
Expand Down Expand Up @@ -140,7 +140,7 @@ class PHPMailer {
* Holds PHPMailer version.
* @var string
*/
public $Version = "2.2";
public $Version = "2.3";

/**
* Sets the email address that a reading confirmation will be sent.
Expand Down Expand Up @@ -242,6 +242,12 @@ class PHPMailer {
*/
public $SingleTo = false;

/**
* Provides the ability to change the line ending
* @var string
*/
public $LE = "\r\n";

/////////////////////////////////////////////////
// PROPERTIES, PRIVATE
/////////////////////////////////////////////////
Expand All @@ -257,7 +263,6 @@ class PHPMailer {
private $boundary = array();
private $language = array();
private $error_count = 0;
private $LE = "\n";
private $sign_cert_file = "";
private $sign_key_file = "";
private $sign_key_pass = "";
Expand Down Expand Up @@ -604,7 +609,7 @@ public function SmtpConnect() {

if($this->smtp->Connect(($ssl ? 'ssl://':'').$host, $port, $this->Timeout)) {

$hello = ($this->Helo != '' ? $this->Hello : $this->ServerHostname());
$hello = ($this->Helo != '' ? $this->Helo : $this->ServerHostname());
$this->smtp->Hello($hello);

if($tls) {
Expand Down Expand Up @@ -660,8 +665,20 @@ public function SmtpClose() {
*/
function SetLanguage($lang_type = 'en', $lang_path = 'language/') {
if( !(@include $lang_path.'phpmailer.lang-'.$lang_type.'.php') ) {
$this->SetError('Could not load language file');
return false;
$PHPMAILER_LANG = array();
$PHPMAILER_LANG["provide_address"] = 'You must provide at least one ' .
$PHPMAILER_LANG["mailer_not_supported"] = ' mailer is not supported.';
$PHPMAILER_LANG["execute"] = 'Could not execute: ';
$PHPMAILER_LANG["instantiate"] = 'Could not instantiate mail function.';
$PHPMAILER_LANG["authenticate"] = 'SMTP Error: Could not authenticate.';
$PHPMAILER_LANG["from_failed"] = 'The following From address failed: ';
$PHPMAILER_LANG["recipients_failed"] = 'SMTP Error: The following ' .
$PHPMAILER_LANG["data_not_accepted"] = 'SMTP Error: Data not accepted.';
$PHPMAILER_LANG["connect_host"] = 'SMTP Error: Could not connect to SMTP host.';
$PHPMAILER_LANG["file_access"] = 'Could not access file: ';
$PHPMAILER_LANG["file_open"] = 'File Error: Could not open file: ';
$PHPMAILER_LANG["encoding"] = 'Unknown encoding: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';
}
$this->language = $PHPMAILER_LANG;
return true;
Expand Down Expand Up @@ -875,9 +892,6 @@ public function CreateHeader() {
} elseif (count($this->cc) == 0) {
$result .= $this->HeaderLine('To', 'undisclosed-recipients:;');
}
if(count($this->cc) > 0) {
$result .= $this->AddrAppend('Cc', $this->cc);
}
}

$from = array();
Expand Down Expand Up @@ -1423,7 +1437,7 @@ public function EncodeQP( $input = '', $line_max = 76, $space_conv = false ) {
} // end of for
$output .= $newline.$eol;
} // end of while
return trim($output);
return $output;
}

/**
Expand Down Expand Up @@ -1711,8 +1725,7 @@ public function MsgHTML($message,$basedir='') {
$ext = $fileParts[1];
$mimeType = $this->_mime_types($ext);
if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; }
if ( strlen($directory) > 1 && substr($basedir,-1) != '/') { $directory .= '/'; }
$this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64', $mimeType);
if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; }
if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) {
$message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message);
}
Expand All @@ -1723,7 +1736,7 @@ public function MsgHTML($message,$basedir='') {
$this->Body = $message;
$textMsg = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$message)));
if ( !empty($textMsg) && empty($this->AltBody) ) {
$this->AltBody = $textMsg;
$this->AltBody = html_entity_decode($textMsg);
}
if ( empty($this->AltBody) ) {
$this->AltBody = 'To view this email message, open the email in with HTML compatibility!' . "\n\n";
Expand Down Expand Up @@ -1894,4 +1907,4 @@ public function Sign($cert_filename, $key_filename, $key_pass) {
}
}

?>
?>
6 changes: 3 additions & 3 deletions class.pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*~ class.pop3.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.2.1 |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
Expand All @@ -26,7 +26,7 @@
/**
* POP Before SMTP Authentication Class
* Version 2.1
* Version 2.3
*
* Author: Richard Davey ([email protected])
* Modifications: Andy Prevost
Expand Down Expand Up @@ -390,4 +390,4 @@ private function catchWarning ($errno, $errstr, $errfile, $errline) {

// End of class
}
?>
?>
7 changes: 3 additions & 4 deletions class.smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.2.1 |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
Expand Down Expand Up @@ -170,7 +170,7 @@ public function StartTLS() {
return false;
}

fputs($this->smtp_conn,"STARTTLS" . $extra . $this->CRLF);
fputs($this->smtp_conn,"STARTTLS" . $this->CRLF);

$rply = $this->get_lines();
$code = substr($rply,0,3);
Expand Down Expand Up @@ -1109,5 +1109,4 @@ private function get_lines() {

}


?>
?>
15 changes: 8 additions & 7 deletions codeworxtech.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<p><strong>WHY USE OUR TOOLS &amp; WHAT&#39;S IN IT FOR YOU?</strong></p>
<p>A valid question. We're developers too. We've been writing software, primarily for the internet, for more than 15 years. Along the way, there are two major things that had tremendous impact of our company: PHP and Open Source. PHP is without doubt the most popular platform for the internet. There has been more progress in this area of technology because of Open Source software than in any other IT segment. We have used many open source tools, some as learning tools, some as components in projects we were working on. To us, it's not about popularity ... we're committed to robust, stable, and efficient tools you can use to get your projects in your user's hands quickly. So the shorter answer: what's in it for you? rapid development and rapid deployment without fuss and with straight forward open source licensing.</p>
<p>Now, the introductions:</p>
<p>Our company, <strong>Codeworx Technologies</strong>, is the publisher of several Open Source applications and developer tools as well as several commercial PHP applications. The Open Source applications are ttCMS and DCP Portal. The Open Source developer tools include QuickComponents (QuickSkin, QuickCache, and QuickTabs) and now PHPMailer.
We have staff and offices in the United States, Canada, Caribbean, the Middle
East, and our primary development center in India. Our company is represented by
<p>Our company, <strong>Worx International Inc.</strong>, is the publisher of several Open Source applications and developer tools as well as several commercial PHP applications. The Open Source applications are ttCMS and DCP Portal. The Open Source developer tools include QuickComponents (QuickSkin and QuickCache) and now PHPMailer.
We have staff and offices in the United States, Caribbean, the Middle
East, and our primary development center in Canada. Our company is represented by
agents and resellers globally.</p>
<p><strong>Codeworx Technologies</strong> is at the forefront of developing PHP applications. Our staff are all Zend Certified university educated and experts at object oriented programming. While <strong>Codeworx Technologies</strong> can handle any project from trouble shooting programs written by others all the way to finished mission-critical applications, we specialize in taking projects from inception all the way through to implementation - on budget, and on time. If you need help with your projects, we&#39;re the team to get it done right at a reasonable price.</p>
<p><strong>Worx International Inc.</strong> is at the forefront of developing PHP applications. Our staff are all Zend Certified university educated and experts at object oriented programming. While <strong>Worx International Inc.</strong> can handle any project from trouble shooting programs written by others all the way to finished mission-critical applications, we specialize in taking projects from inception all the way through to implementation - on budget, and on time. If you need help with your projects, we&#39;re the team to get it done right at a reasonable price.</p>
<p>Over the years, there have been a number of tools that have been constant favorites in all of our projects. We have become the project administrators for most of these tools.</p>
<p>Our developer tools are all Open Source. Here&#39;s a brief description:</p>
<ul>
Expand All @@ -93,13 +93,13 @@
</li>
</ul>
<p>We're committed to PHP and to the Open Source community.</p>
<p>Opportunities with <strong>Codeworx Technologies</strong>:</p>
<p>Opportunities with <strong>Worx International Inc.</strong>:</p>
<ul>
<li><span style="background-color: #FFFF00">Resellers/Agents</span>: We're always interested in talking with companies that
want to represent
<strong>Codeworx Technologies</strong> in their markets. We also have private label programs for our commercial products (in certain circumstances).</li>
<strong>Worx International Inc.</strong> in their markets. We also have private label programs for our commercial products (in certain circumstances).</li>
<li>Programmers/Developers: We are usually fully staffed, however, if you would like to be considered for a career with
<strong>Codeworx Technologies</strong>, we would be pleased to hear from you.<br />
<strong>Worx International Inc.</strong>, we would be pleased to hear from you.<br />
A few things to note:<br />
<ul>
<li>experience level does not matter: from fresh out of college to multi-year experience - it&#39;s your
Expand All @@ -114,6 +114,7 @@
Andy Prevost (aka, codeworxtech)<br />
<a href="mailto:[email protected]">[email protected]</a><br />
<br />
We now also offer website design. hosting, and remote forms processing. Visit <a href="http://www.worxstudio.com/" target="_blank">WorxStudio.com</a> for more information.<br />
</div>
</center>
</body>
Expand Down
25 changes: 25 additions & 0 deletions language/phpmailer.lang-ar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PHPMailer language file.
* Arabic Version
* by : bahjat al mostafa <[email protected]> */

$PHPMAILER_LANG = array();

$PHPMAILER_LANG["provide_address"] = ' íÌÈ Ãä ÊÖÚ Úáì ÇáÃŞá ' .
'ÚäæÇä ÈÑíÏ ÅáßÊÑæäí ãÓÊŞÈá æÇÍÏ';
$PHPMAILER_LANG["mailer_not_supported"] = ' ãÑÓá ÇáÈÑíÏ ÛíÑ ãÏÚæã :';
$PHPMAILER_LANG["execute"] = 'áÇ íãßä ÊäİíĞ : ';
$PHPMAILER_LANG["instantiate"] = 'áã íÓÊØÚ ÊåíÆÉ ÊÇÈÚ ÇáÈÑíÏ';
$PHPMAILER_LANG["authenticate"] = 'ÎØà STMP : áã íãáß ÇáÕáÇÍíÉ';
$PHPMAILER_LANG["from_failed"] = 'ÇáÚäæÇä ÇáãÑÓá ÇáÊÇáí İÔá : ';
$PHPMAILER_LANG["recipients_failed"] = 'ÎØÃ STMP : ' .
'åÄáÇÁ ÇáãÓÊŞÈáæä İÔáæÇ : ';
$PHPMAILER_LANG["data_not_accepted"] = 'ÎØà STMP : ÇáãÚØíÇÊ áã ÊŞÈá .';
$PHPMAILER_LANG["connect_host"] = 'ÎØà STMP : ÇáÇÊÕÇá ÈãÓÊÖíİ STMP áã íÊã';
$PHPMAILER_LANG["file_access"] = 'áÇ íãßä ÇáæÕæá áãáİ : ';
$PHPMAILER_LANG["file_open"] = 'ÎØà ãáİ : áã íãßä İÊÍ ãáİ :';
$PHPMAILER_LANG["encoding"] = 'ÊÔİíÑ ÛíÑ ãÚÑæİ : ';
$PHPMAILER_LANG["signing"] = 'ÎØÃ ÊÓÌíá : ';

?>
3 changes: 1 addition & 2 deletions language/phpmailer.lang-br.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
$PHPMAILER_LANG["encoding"] = 'Codificação desconhecida: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>

?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-ca.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
$PHPMAILER_LANG["encoding"] = 'Codificació desconeguda: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-cz.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
$PHPMAILER_LANG["encoding"] = 'Neznámé kódování: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
3 changes: 1 addition & 2 deletions language/phpmailer.lang-de.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@
$PHPMAILER_LANG["encoding"] = 'Unbekanntes Encoding-Format: ';
$PHPMAILER_LANG["signing"] = 'Fehler beim Signieren: ';

?>

?>
5 changes: 2 additions & 3 deletions language/phpmailer.lang-dk.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
/**
* PHPMailer language file.
* Danish Version
* Author: Mikael Stokkebro <[email protected]>
*/
* Author: Mikael Stokkebro <[email protected]> */

$PHPMAILER_LANG = array();

Expand All @@ -23,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Ukendt encode-format: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-es.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Codificación desconocida: ';
$PHPMAILER_LANG["signing"] = 'Error al firmar: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-et.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
$PHPMAILER_LANG["encoding"] = 'Tundmatu Unknown kodeering: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-fi.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Tuntematon koodaustyyppi: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-fo.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
$PHPMAILER_LANG["encoding"] = 'Ókend encoding: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
3 changes: 1 addition & 2 deletions language/phpmailer.lang-fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Encodage inconnu : ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>

?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-hu.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Ismeretlen kódolás: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
5 changes: 2 additions & 3 deletions language/phpmailer.lang-it.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* PHPMailer language file.
* Italian version
* @package PHPMailer
* @author Ilias Bartolini <[email protected]>
*/
* @author Ilias Bartolini <[email protected]>*/

$PHPMAILER_LANG = array();

Expand All @@ -27,4 +26,4 @@
$PHPMAILER_LANG["encoding"] = 'Encoding set dei caratteri sconosciuto: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
Binary file modified language/phpmailer.lang-ja.php
Binary file not shown.
2 changes: 1 addition & 1 deletion language/phpmailer.lang-nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Onbekende codering: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
2 changes: 1 addition & 1 deletion language/phpmailer.lang-no.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
$PHPMAILER_LANG["encoding"] = 'Ukjent encoding: ';
$PHPMAILER_LANG["signing"] = 'Signing Error: ';

?>
?>
Loading

0 comments on commit fd036f3

Please sign in to comment.