Diligent web site
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. ChangeLog
  2. NOTE: THIS VERSION OF PHPMAILER IS DESIGNED FOR PHP5/PHP6.
  3. IT WILL NOT WORK WITH PHP4.
  4. Version 5.2 (July 19, 2011)
  5. * protected MIME body and header
  6. * better DKIM DNS Resource Record support
  7. * better aly handling
  8. * htmlfilter class added to extras
  9. * moved to Apache Extras
  10. Version 5.1 (October 20, 2009)
  11. * fixed filename issue with AddStringAttachment (thanks to Tony)
  12. * fixed "SingleTo" property, now works with Senmail, Qmail, and SMTP in
  13. addition to PHP mail()
  14. * added DKIM digital signing functionality
  15. New properties:
  16. - DKIM_domain (sets the domain name)
  17. - DKIM_private (holds DKIM private key)
  18. - DKIM_passphrase (holds your DKIM passphrase)
  19. - DKIM_selector (holds the DKIM "selector")
  20. - DKIM_identity (holds the identifying email address)
  21. * added callback function support
  22. - callback function parameters include:
  23. result, to, cc, bcc, subject and body
  24. * see the test/test_callback.php file for usage.
  25. * added "auto" identity functionality
  26. - can automatically add:
  27. - Return-path (if Sender not set)
  28. - Reply-To (if ReplyTo not set)
  29. - can be disabled:
  30. - $mail->SetFrom('[email protected]','First Last',false);
  31. - or by adding the $mail->Sender and/or $mail->ReplyTo properties
  32. Note: "auto" identity added to help with emails ending up in spam
  33. or junk boxes because of missing headers
  34. Version 5.0.2 (May 24, 2009)
  35. * Fix for missing attachments when inline graphics are present
  36. * Fix for missing Cc in header when using SMTP (mail was sent,
  37. but not displayed in header -- Cc receiver only saw email To:
  38. line and no Cc line, but did get the email (To receiver
  39. saw same)
  40. Version 5.0.1 (April 05, 2009)
  41. * Temporary fix for missing attachments
  42. Version 5.0.0 (April 02, 2009)
  43. * With the release of this version, we are initiating a new version numbering
  44. system to differentiate from the PHP4 version of PHPMailer.
  45. * Most notable in this release is fully object oriented code.
  46. class.smtp.php:
  47. * Refactored class.smtp.php to support new exception handling
  48. code size reduced from 29.2 Kb to 25.6 Kb
  49. * Removed unnecessary functions from class.smtp.php:
  50. public function Expand($name) {
  51. public function Help($keyword="") {
  52. public function Noop() {
  53. public function Send($from) {
  54. public function SendOrMail($from) {
  55. public function Verify($name) {
  56. class.phpmailer.php:
  57. * Refactored class.phpmailer.php with new exception handling
  58. * Changed processing functionality of Sendmail and Qmail so they cannot be
  59. inadvertently used
  60. * removed getFile() function, just became a simple wrapper for
  61. file_get_contents()
  62. * added check for PHP version (will gracefully exit if not at least PHP 5.0)
  63. class.phpmailer.php enhancements
  64. * enhanced code to check if an attachment source is the same as an embedded or
  65. inline graphic source to eliminate duplicate attachments
  66. New /test_script
  67. * We have written a test script you can use to test the script as part of your
  68. installation. Once you press submit, the test script will send a multi-mime
  69. email with either the message you type in or an HTML email with an inline
  70. graphic. Two attachments are included in the email (one of the attachments
  71. is also the inline graphic so you can see that only one copy of the graphic
  72. is sent in the email). The test script will also display the functional
  73. script that you can copy/paste to your editor to duplicate the functionality.
  74. New examples
  75. * All new examples in both basic and advanced modes. Advanced examples show
  76. Exception handling.
  77. PHPDocumentator (phpdocs) documentation for PHPMailer version 5.0.0
  78. * all new documentation
  79. Please note: the website has been updated to reflect the changes in PHPMailer
  80. version 5.0.0. http://phpmailer.codeworxtech.com/
  81. Version 2.3 (November 06, 2008)
  82. * added Arabic language (many thanks to Bahjat Al Mostafa)
  83. * removed English language from language files and made it a default within
  84. class.phpmailer.php - if no language is found, it will default to use
  85. the english language translation
  86. * fixed public/private declarations
  87. * corrected line 1728, $basedir to $directory
  88. * added $sign_cert_file to avoid improper duplicate use of $sign_key_file
  89. * corrected $this->Hello on line 612 to $this->Helo
  90. * changed default of $LE to "\r\n" to comply with RFC 2822. Can be set by the user
  91. if default is not acceptable
  92. * removed trim() from return results in EncodeQP
  93. * /test and three files it contained are removed from version 2.3
  94. * fixed phpunit.php for compliance with PHP5
  95. * changed $this->AltBody = $textMsg; to $this->AltBody = html_entity_decode($textMsg);
  96. * We have removed the /phpdoc from the downloads. All documentation is now on
  97. the http://phpmailer.codeworxtech.com website.
  98. Version 2.2.1 () July 19 2008
  99. * fixed line 1092 in class.smtp.php (my apologies, error on my part)
  100. Version 2.2 () July 15 2008
  101. * Fixed redirect issue (display of UTF-8 in thank you redirect)
  102. * fixed error in getResponse function declaration (class.pop3.php)
  103. * PHPMailer now PHP6 compliant
  104. * fixed line 1092 in class.smtp.php (endless loop from missing = sign)
  105. Version 2.1 (Wed, June 04 2008)
  106. ** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS.
  107. IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE
  108. APPRECIATED.
  109. * added S/MIME functionality (ability to digitally sign emails)
  110. BIG THANKS TO "sergiocambra" for posting this patch back in November 2007.
  111. The "Signed Emails" functionality adds the Sign method to pass the private key
  112. filename and the password to read it, and then email will be sent with
  113. content-type multipart/signed and with the digital signature attached.
  114. * fully compatible with E_STRICT error level
  115. - Please note:
  116. In about half the test environments this development version was subjected
  117. to, an error was thrown for the date() functions used (line 1565 and 1569).
  118. This is NOT a PHPMailer error, it is the result of an incorrectly configured
  119. PHP5 installation. The fix is to modify your 'php.ini' file and include the
  120. date.timezone = America/New York
  121. directive, to your own server timezone
  122. - If you do get this error, and are unable to access your php.ini file:
  123. In your PHP script, add
  124. date_default_timezone_set('America/Toronto');
  125. - do not try to use
  126. $myVar = date_default_timezone_get();
  127. as a test, it will throw an error.
  128. * added ability to define path (mainly for embedded images)
  129. function MsgHTML($message,$basedir='') ... where:
  130. $basedir is the fully qualified path
  131. * fixed MsgHTML() function:
  132. - Embedded Images where images are specified by <protocol>:// will not be altered or embedded
  133. * fixed the return value of SMTP exit code ( pclose )
  134. * addressed issue of multibyte characters in subject line and truncating
  135. * added ability to have user specified Message ID
  136. (default is still that PHPMailer create a unique Message ID)
  137. * corrected unidentified message type to 'application/octet-stream'
  138. * fixed chunk_split() multibyte issue (thanks to Colin Brown, et al).
  139. * added check for added attachments
  140. * enhanced conversion of HTML to text in MsgHTML (thanks to "brunny")
  141. Version 2.1.0beta2 (Sun, Dec 02 2007)
  142. * implemented updated EncodeQP (thanks to coolbru, aka Marcus Bointon)
  143. * finished all testing, all known bugs corrected, enhancements tested
  144. - note: will NOT work with PHP4.
  145. please note, this is BETA software
  146. ** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
  147. INTENDED STRICTLY FOR TESTING
  148. Version 2.1.0beta1
  149. please note, this is BETA software
  150. ** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS
  151. INTENDED STRICTLY FOR TESTING
  152. Version 2.0.0 rc2 (Fri, Nov 16 2007), interim release
  153. * implements new property to control VERP in class.smtp.php
  154. example (requires instantiating class.smtp.php):
  155. $mail->do_verp = true;
  156. * POP-before-SMTP functionality included, thanks to Richard Davey
  157. (see class.pop3.php & pop3_before_smtp_test.php for examples)
  158. * included example showing how to use PHPMailer with GMAIL
  159. * fixed the missing Cc in SendMail() and Mail()
  160. ******************
  161. A note on sending bulk emails:
  162. If the email you are sending is not personalized, consider using the
  163. "undisclosed-recipient:;" strategy. That is, put all of your recipients
  164. in the Bcc field and set the To field to "undisclosed-recipients:;".
  165. It's a lot faster (only one send) and saves quite a bit on resources.
  166. Contrary to some opinions, this will not get you listed in spam engines -
  167. it's a legitimate way for you to send emails.
  168. A partial example for use with PHPMailer:
  169. $mail->AddAddress("undisclosed-recipients:;");
  170. $mail->AddBCC("[email protected],[email protected],[email protected]");
  171. Many email service providers restrict the number of emails that can be sent
  172. in any given time period. Often that is between 50 - 60 emails maximum
  173. per hour or per send session.
  174. If that's the case, then break up your Bcc lists into chunks that are one
  175. less than your limit, and put a pause in your script.
  176. *******************
  177. Version 2.0.0 rc1 (Thu, Nov 08 2007), interim release
  178. * dramatically simplified using inline graphics ... it's fully automated and requires no user input
  179. * added automatic document type detection for attachments and pictures
  180. * added MsgHTML() function to replace Body tag for HTML emails
  181. * fixed the SendMail security issues (input validation vulnerability)
  182. * enhanced the AddAddresses functionality so that the "Name" portion is used in the email address
  183. * removed the need to use the AltBody method (set from the HTML, or default text used)
  184. * set the PHP Mail() function as the default (still support SendMail, SMTP Mail)
  185. * removed the need to set the IsHTML property (set automatically)
  186. * added Estonian language file by Indrek P&auml;ri
  187. * added header injection patch
  188. * added "set" method to permit users to create their own pseudo-properties like 'X-Headers', etc.
  189. example of use:
  190. $mail->set('X-Priority', '3');
  191. $mail->set('X-MSMail-Priority', 'Normal');
  192. * fixed warning message in SMTP get_lines method
  193. * added TLS/SSL SMTP support
  194. example of use:
  195. $mail = new PHPMailer();
  196. $mail->Mailer = "smtp";
  197. $mail->Host = "smtp.example.com";
  198. $mail->SMTPSecure = "tls"; // option
  199. //$mail->SMTPSecure = "ssl"; // option
  200. ...
  201. $mail->Send();
  202. * PHPMailer has been tested with PHP4 (4.4.7) and PHP5 (5.2.7)
  203. * Works with PHP installed as a module or as CGI-PHP
  204. - NOTE: will NOT work with PHP5 in E_STRICT error mode
  205. Version 1.73 (Sun, Jun 10 2005)
  206. * Fixed denial of service bug: http://www.cybsec.com/vuln/PHPMailer-DOS.pdf
  207. * Now has a total of 20 translations
  208. * Fixed alt attachments bug: http://tinyurl.com/98u9k
  209. Version 1.72 (Wed, May 25 2004)
  210. * Added Dutch, Swedish, Czech, Norwegian, and Turkish translations.
  211. * Received: Removed this method because spam filter programs like
  212. SpamAssassin reject this header.
  213. * Fixed error count bug.
  214. * SetLanguage default is now "language/".
  215. * Fixed magic_quotes_runtime bug.
  216. Version 1.71 (Tue, Jul 28 2003)
  217. * Made several speed enhancements
  218. * Added German and Italian translation files
  219. * Fixed HELO/AUTH bugs on keep-alive connects
  220. * Now provides an error message if language file does not load
  221. * Fixed attachment EOL bug
  222. * Updated some unclear documentation
  223. * Added additional tests and improved others
  224. Version 1.70 (Mon, Jun 20 2003)
  225. * Added SMTP keep-alive support
  226. * Added IsError method for error detection
  227. * Added error message translation support (SetLanguage)
  228. * Refactored many methods to increase library performance
  229. * Hello now sends the newer EHLO message before HELO as per RFC 2821
  230. * Removed the boundary class and replaced it with GetBoundary
  231. * Removed queue support methods
  232. * New $Hostname variable
  233. * New Message-ID header
  234. * Received header reformat
  235. * Helo variable default changed to $Hostname
  236. * Removed extra spaces in Content-Type definition (#667182)
  237. * Return-Path should be set to Sender when set
  238. * Adds Q or B encoding to headers when necessary
  239. * quoted-encoding should now encode NULs \000
  240. * Fixed encoding of body/AltBody (#553370)
  241. * Adds "To: undisclosed-recipients:;" when all recipients are hidden (BCC)
  242. * Multiple bug fixes
  243. Version 1.65 (Fri, Aug 09 2002)
  244. * Fixed non-visible attachment bug (#585097) for Outlook
  245. * SMTP connections are now closed after each transaction
  246. * Fixed SMTP::Expand return value
  247. * Converted SMTP class documentation to phpDocumentor format
  248. Version 1.62 (Wed, Jun 26 2002)
  249. * Fixed multi-attach bug
  250. * Set proper word wrapping
  251. * Reduced memory use with attachments
  252. * Added more debugging
  253. * Changed documentation to phpDocumentor format
  254. Version 1.60 (Sat, Mar 30 2002)
  255. * Sendmail pipe and address patch (Christian Holtje)
  256. * Added embedded image and read confirmation support (A. Ognio)
  257. * Added unit tests
  258. * Added SMTP timeout support (*nix only)
  259. * Added possibly temporary PluginDir variable for SMTP class
  260. * Added LE message line ending variable
  261. * Refactored boundary and attachment code
  262. * Eliminated SMTP class warnings
  263. * Added SendToQueue method for future queuing support
  264. Version 1.54 (Wed, Dec 19 2001)
  265. * Add some queuing support code
  266. * Fixed a pesky multi/alt bug
  267. * Messages are no longer forced to have "To" addresses
  268. Version 1.50 (Thu, Nov 08 2001)
  269. * Fix extra lines when not using SMTP mailer
  270. * Set WordWrap variable to int with a zero default
  271. Version 1.47 (Tue, Oct 16 2001)
  272. * Fixed Received header code format
  273. * Fixed AltBody order error
  274. * Fixed alternate port warning
  275. Version 1.45 (Tue, Sep 25 2001)
  276. * Added enhanced SMTP debug support
  277. * Added support for multiple ports on SMTP
  278. * Added Received header for tracing
  279. * Fixed AddStringAttachment encoding
  280. * Fixed possible header name quote bug
  281. * Fixed wordwrap() trim bug
  282. * Couple other small bug fixes
  283. Version 1.41 (Wed, Aug 22 2001)
  284. * Fixed AltBody bug w/o attachments
  285. * Fixed rfc_date() for certain mail servers
  286. Version 1.40 (Sun, Aug 12 2001)
  287. * Added multipart/alternative support (AltBody)
  288. * Documentation update
  289. * Fixed bug in Mercury MTA
  290. Version 1.29 (Fri, Aug 03 2001)
  291. * Added AddStringAttachment() method
  292. * Added SMTP authentication support
  293. Version 1.28 (Mon, Jul 30 2001)
  294. * Fixed a typo in SMTP class
  295. * Fixed header issue with Imail (win32) SMTP server
  296. * Made fopen() calls for attachments use "rb" to fix win32 error
  297. Version 1.25 (Mon, Jul 02 2001)
  298. * Added RFC 822 date fix (Patrice)
  299. * Added improved error handling by adding a $ErrorInfo variable
  300. * Removed MailerDebug variable (obsolete with new error handler)
  301. Version 1.20 (Mon, Jun 25 2001)
  302. * Added quoted-printable encoding (Patrice)
  303. * Set Version as public and removed PrintVersion()
  304. * Changed phpdoc to only display public variables and methods
  305. Version 1.19 (Thu, Jun 21 2001)
  306. * Fixed MS Mail header bug
  307. * Added fix for Bcc problem with mail(). *Does not work on Win32*
  308. (See PHP bug report: http://www.php.net/bugs.php?id=11616)
  309. * mail() no longer passes a fifth parameter when not needed
  310. Version 1.15 (Fri, Jun 15 2001)
  311. [Note: these changes contributed by Patrice Fournier]
  312. * Changed all remaining \n to \r\n
  313. * Bcc: header no longer writen to message except
  314. when sent directly to sendmail
  315. * Added a small message to non-MIME compliant mail reader
  316. * Added Sender variable to change the Sender email
  317. used in -f for sendmail/mail and in 'MAIL FROM' for smtp mode
  318. * Changed boundary setting to a place it will be set only once
  319. * Removed transfer encoding for whole message when using multipart
  320. * Message body now uses Encoding in multipart messages
  321. * Can set encoding and type to attachments 7bit, 8bit
  322. and binary attachment are sent as is, base64 are encoded
  323. * Can set Encoding to base64 to send 8 bits body
  324. through 7 bits servers
  325. Version 1.10 (Tue, Jun 12 2001)
  326. * Fixed win32 mail header bug (printed out headers in message body)
  327. Version 1.09 (Fri, Jun 08 2001)
  328. * Changed date header to work with Netscape mail programs
  329. * Altered phpdoc documentation
  330. Version 1.08 (Tue, Jun 05 2001)
  331. * Added enhanced error-checking
  332. * Added phpdoc documentation to source
  333. Version 1.06 (Fri, Jun 01 2001)
  334. * Added optional name for file attachments
  335. Version 1.05 (Tue, May 29 2001)
  336. * Code cleanup
  337. * Eliminated sendmail header warning message
  338. * Fixed possible SMTP error
  339. Version 1.03 (Thu, May 24 2001)
  340. * Fixed problem where qmail sends out duplicate messages
  341. Version 1.02 (Wed, May 23 2001)
  342. * Added multiple recipient and attachment Clear* methods
  343. * Added Sendmail public variable
  344. * Fixed problem with loading SMTP library multiple times
  345. Version 0.98 (Tue, May 22 2001)
  346. * Fixed problem with redundant mail hosts sending out multiple messages
  347. * Added additional error handler code
  348. * Added AddCustomHeader() function
  349. * Added support for Microsoft mail client headers (affects priority)
  350. * Fixed small bug with Mailer variable
  351. * Added PrintVersion() function
  352. Version 0.92 (Tue, May 15 2001)
  353. * Changed file names to class.phpmailer.php and class.smtp.php to match
  354. current PHP class trend.
  355. * Fixed problem where body not being printed when a message is attached
  356. * Several small bug fixes
  357. Version 0.90 (Tue, April 17 2001)
  358. * Intial public release