2
2
/*~ class.phpmailer.php
3
3
.---------------------------------------------------------------------------.
4
4
| Software: PHPMailer - PHP email class |
5
- | Version: 5.0.1 |
5
+ | Version: 5.0.2 |
6
6
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
7
7
| Info: http://phpmailer.sourceforge.net |
8
8
| Support: http://sourceforge.net/projects/phpmailer/ |
@@ -250,6 +250,12 @@ class PHPMailer {
250
250
*/
251
251
public $ LE = "\n" ;
252
252
253
+ /**
254
+ * Sets the PHPMailer Version number
255
+ * @var string
256
+ */
257
+ public $ Version = '5.0.2 ' ;
258
+
253
259
/////////////////////////////////////////////////
254
260
// PROPERTIES, PRIVATE AND PROTECTED
255
261
/////////////////////////////////////////////////
@@ -275,7 +281,6 @@ class PHPMailer {
275
281
// CONSTANTS
276
282
/////////////////////////////////////////////////
277
283
278
- const VERSION = '5.0.0 ' ;
279
284
const STOP_MESSAGE = 0 ; // message only, continue processing
280
285
const STOP_CONTINUE = 1 ; // message?, likely ok to continue processing
281
286
const STOP_CRITICAL = 2 ; // message, plus full stop, critical error reached
@@ -980,7 +985,7 @@ public function CreateHeader() {
980
985
$ result .= $ this ->AddrAppend ('From ' , $ from );
981
986
982
987
// 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 ) {
984
989
$ result .= $ this ->AddrAppend ('Cc ' , $ this ->cc );
985
990
}
986
991
@@ -1004,7 +1009,7 @@ public function CreateHeader() {
1004
1009
$ result .= sprintf ("Message-ID: <%s@%s>%s " , $ uniq_id , $ this ->ServerHostname (), $ this ->LE );
1005
1010
}
1006
1011
$ 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) ' );
1008
1013
1009
1014
if ($ this ->ConfirmReadingTo != '' ) {
1010
1015
$ result .= $ this ->HeaderLine ('Disposition-Notification-To ' , '< ' . trim ($ this ->ConfirmReadingTo ) . '> ' );
0 commit comments