Skip to content

Commit e2874ec

Browse files
committed
Merge dev branch back into trunk
1 parent 8d4fc6d commit e2874ec

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

ChangeLog.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ ChangeLog
33
NOTE: THIS VERSION OF PHPMAILER IS DESIGNED FOR PHP5/PHP6.
44
IT WILL NOT WORK WITH PHP4.
55

6-
Version 5.0.1 (April 08, 2009)
7-
* fixed duplicate attachments issue (inline graphic vs attachment)
6+
Version 5.0.2 (May 24, 2009)
7+
* Fix for missing attachments when inline graphics are present
8+
* Fix for missing Cc in header when using SMTP (mail was sent,
9+
but not displayed in header -- Cc receiver only saw email To:
10+
line and no Cc line, but did get the email (To receiver
11+
saw same)
12+
13+
Version 5.0.1 (April 05, 2009)
14+
* Temporary fix for missing attachments
815

916
Version 5.0.0 (April 02, 2009)
1017

class.phpmailer.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*~ class.phpmailer.php
33
.---------------------------------------------------------------------------.
44
| Software: PHPMailer - PHP email class |
5-
| Version: 5.0.1 |
5+
| Version: 5.0.2 |
66
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
77
| Info: http://phpmailer.sourceforge.net |
88
| Support: http://sourceforge.net/projects/phpmailer/ |
@@ -250,6 +250,12 @@ class PHPMailer {
250250
*/
251251
public $LE = "\n";
252252

253+
/**
254+
* Sets the PHPMailer Version number
255+
* @var string
256+
*/
257+
public $Version = '5.0.2';
258+
253259
/////////////////////////////////////////////////
254260
// PROPERTIES, PRIVATE AND PROTECTED
255261
/////////////////////////////////////////////////
@@ -275,7 +281,6 @@ class PHPMailer {
275281
// CONSTANTS
276282
/////////////////////////////////////////////////
277283

278-
const VERSION = '5.0.0';
279284
const STOP_MESSAGE = 0; // message only, continue processing
280285
const STOP_CONTINUE = 1; // message?, likely ok to continue processing
281286
const STOP_CRITICAL = 2; // message, plus full stop, critical error reached
@@ -980,7 +985,7 @@ public function CreateHeader() {
980985
$result .= $this->AddrAppend('From', $from);
981986

982987
// sendmail and mail() extract Cc from the header before sending
983-
if((($this->Mailer == 'sendmail') || ($this->Mailer == 'mail')) && (count($this->cc) > 0)) {
988+
if(count($this->cc) > 0) {
984989
$result .= $this->AddrAppend('Cc', $this->cc);
985990
}
986991

@@ -1004,7 +1009,7 @@ public function CreateHeader() {
10041009
$result .= sprintf("Message-ID: <%s@%s>%s", $uniq_id, $this->ServerHostname(), $this->LE);
10051010
}
10061011
$result .= $this->HeaderLine('X-Priority', $this->Priority);
1007-
$result .= $this->HeaderLine('X-Mailer', 'PHPMailer ' . self::VERSION . ' (phpmailer.codeworxtech.com)');
1012+
$result .= $this->HeaderLine('X-Mailer', 'PHPMailer '.$this->Version.' (phpmailer.codeworxtech.com)');
10081013

10091014
if($this->ConfirmReadingTo != '') {
10101015
$result .= $this->HeaderLine('Disposition-Notification-To', '<' . trim($this->ConfirmReadingTo) . '>');

0 commit comments

Comments
 (0)