CHANGES 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. Changelog
  2. =========
  3. 6.2.0 (2010-XX-XX)
  4. ------------------
  5. * added support for symfony/polyfill-intl-dn
  6. * deprecated Swift_CharacterStream_ArrayCharacterStream and Swift_CharacterStream_NgCharacterStream in favor of Swift_CharacterStream_CharacterStream
  7. 6.1.3 (2018-09-11)
  8. ------------------
  9. * added auto-start to the SMTP transport when sending a message
  10. * tweaked error message when the response from an SMTP server is empty
  11. * fixed missing property in Swift_Mime_IdGenerator
  12. * exposed original body content type with Swift_Mime_SimpleMimeEntity::getBodyContentType()
  13. * fixed typo in variable name in Swift_AddressEncoder_IdnAddressEncoder
  14. * fixed return type in MessageLogger
  15. * fixed missing property addressEncoder in SimpleHeaderFactory class
  16. 6.1.2 (2018-07-13)
  17. ------------------
  18. * handled recipient errors when pipelining
  19. 6.1.1 (2018-07-04)
  20. ------------------
  21. * removed hard dependency on an IDN encoder
  22. 6.1.0 (2018-07-02)
  23. ------------------
  24. * added address encoder exceptions during send
  25. * added support for bubbling up authenticator error messages
  26. * added support for non-ASCII email addresses
  27. * introduced new dependencies: transport.smtphandlers and transport.authhandlers
  28. * deprecated Swift_Signers_OpenDKIMSigner; use Swift_Signers_DKIMSigner instead
  29. * added support for SMTP pipelining
  30. * added Swift_Transport_Esmtp_EightBitMimeHandler
  31. * fixed startTLS only allowed tls1.0, now allowed: tls1.0, tls1.1, tls1.2
  32. 6.0.2 (2017-09-30)
  33. ------------------
  34. * fixed DecoratorPlugin
  35. * removed usage of getmypid()
  36. 6.0.1 (2017-05-20)
  37. ------------------
  38. * fixed BC break that can be avoided easily
  39. 6.0.0 (2017-05-19)
  40. ------------------
  41. * added Swift_Transport::ping()
  42. * removed Swift_Mime_HeaderFactory, Swift_Mime_HeaderSet, Swift_Mime_Message, Swift_Mime_MimeEntity,
  43. and Swift_Mime_ParameterizedHeader interfaces
  44. * removed Swift_MailTransport and Swift_Transport_MailTransport
  45. * removed Swift_Encoding
  46. * removed the Swift_Transport_MailInvoker interface and Swift_Transport_SimpleMailInvoker class
  47. * removed the Swift_SignedMessage class
  48. * removed newInstance() methods everywhere
  49. * methods operating on Date header now use DateTimeImmutable object instead of Unix timestamp;
  50. Swift_Mime_Headers_DateHeader::getTimestamp()/setTimestamp() renamed to getDateTime()/setDateTime()
  51. * bumped minimum version to PHP 7.0
  52. * removed Swift_Validate and replaced by egulias/email-validator
  53. 5.4.9 (2018-01-23)
  54. ------------------
  55. * no changes, last version of the 5.x series
  56. 5.4.8 (2017-05-01)
  57. ------------------
  58. * fixed encoding inheritance in addPart()
  59. * fixed sorting MIME children when their types are equal
  60. 5.4.7 (2017-04-20)
  61. ------------------
  62. * fixed NTLMAuthenticator clobbering bcmath scale
  63. 5.4.6 (2017-02-13)
  64. ------------------
  65. * removed exceptions thrown in destructors as they lead to fatal errors
  66. * switched to use sha256 by default in DKIM as per the RFC
  67. * fixed an 'Undefined variable: pipes' PHP notice
  68. * fixed long To headers when using the mail transport
  69. * fixed NTLMAuthenticator when no domain is passed with the username
  70. * prevented fatal error during unserialization of a message
  71. * fixed a PHP warning when sending a message that has a length of a multiple of 8192
  72. 5.4.5 (2016-12-29)
  73. ------------------
  74. * SECURITY FIX: fixed CVE-2016-10074 by disallowing potentially unsafe shell characters
  75. Prior to 5.4.5, the mail transport (Swift_Transport_MailTransport) was vulnerable to passing
  76. arbitrary shell arguments if the "From", "ReturnPath" or "Sender" header came
  77. from a non-trusted source, potentially allowing Remote Code Execution
  78. * deprecated the mail transport
  79. 5.4.4 (2016-11-23)
  80. ------------------
  81. * reverted escaping command-line args to mail (PHP mail() function already does it)
  82. 5.4.3 (2016-07-08)
  83. ------------------
  84. * fixed SimpleHeaderSet::has()/get() when the 0 index is removed
  85. * removed the need to have mcrypt installed
  86. * fixed broken MIME header encoding with quotes/colons and non-ascii chars
  87. * allowed mail transport send for messages without To header
  88. * fixed PHP 7 support
  89. 5.4.2 (2016-05-01)
  90. ------------------
  91. * fixed support for IPv6 sockets
  92. * added auto-retry when sending messages from the memory spool
  93. * fixed consecutive read calls in Swift_ByteStream_FileByteStream
  94. * added support for iso-8859-15 encoding
  95. * fixed PHP mail extra params on missing reversePath
  96. * added methods to set custom stream context options
  97. * fixed charset changes in QpContentEncoderProxy
  98. * added return-path header to the ignoredHeaders list of DKIMSigner
  99. * fixed crlf for subject using mail
  100. * fixed add soft line break only when necessary
  101. * fixed escaping command-line args to mail
  102. 5.4.1 (2015-06-06)
  103. ------------------
  104. * made Swiftmailer exceptions confirm to PHP base exception constructor signature
  105. * fixed MAIL FROM & RCPT TO headers to be RFC compliant
  106. 5.4.0 (2015-03-14)
  107. ------------------
  108. * added the possibility to add extra certs to PKCS#7 signature
  109. * fix base64 encoding with streams
  110. * added a new RESULT_SPOOLED status for SpoolTransport
  111. * fixed getBody() on attachments when called more than once
  112. * removed dots from generated filenames in filespool
  113. 5.3.1 (2014-12-05)
  114. ------------------
  115. * fixed cloning of messages with attachments
  116. 5.3.0 (2014-10-04)
  117. ------------------
  118. * fixed cloning when using signers
  119. * reverted removal of Swift_Encoding
  120. * drop support for PHP 5.2.x
  121. 5.2.2 (2014-09-20)
  122. ------------------
  123. * fixed Japanese support
  124. * fixed the memory spool when the message changes when in the pool
  125. * added support for cloning messages
  126. * fixed PHP warning in the redirect plugin
  127. * changed the way to and cc-ed email are sent to only use one transaction
  128. 5.2.1 (2014-06-13)
  129. ------------------
  130. * SECURITY FIX: fixed CLI escaping when using sendmail as a transport
  131. Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport)
  132. was vulnerable to an arbitrary shell execution if the "From" header came
  133. from a non-trusted source and no "Return-Path" is configured.
  134. * fixed parameter in DKIMSigner
  135. * fixed compatibility with PHP < 5.4
  136. 5.2.0 (2014-05-08)
  137. ------------------
  138. * fixed Swift_ByteStream_FileByteStream::read() to match to the specification
  139. * fixed from-charset and to-charset arguments in mbstring_convert_encoding() usages
  140. * fixed infinite loop in StreamBuffer
  141. * fixed NullTransport to return the number of ignored emails instead of 0
  142. * Use phpunit and mockery for unit testing (realityking)
  143. 5.1.0 (2014-03-18)
  144. ------------------
  145. * fixed data writing to stream when sending large messages
  146. * added support for libopendkim (https://github.com/xdecock/php-opendkim)
  147. * merged SignedMessage and Message
  148. * added Gmail XOAuth2 authentication
  149. * updated the list of known mime types
  150. * added NTLM authentication
  151. 5.0.3 (2013-12-03)
  152. ------------------
  153. * fixed double-dot bug
  154. * fixed DKIM signer
  155. 5.0.2 (2013-08-30)
  156. ------------------
  157. * handled correct exception type while reading IoBuffer output
  158. 5.0.1 (2013-06-17)
  159. ------------------
  160. * changed the spool to only start the transport when a mail has to be sent
  161. * fixed compatibility with PHP 5.2
  162. * fixed LICENSE file
  163. 5.0.0 (2013-04-30)
  164. ------------------
  165. * changed the license from LGPL to MIT
  166. 4.3.1 (2013-04-11)
  167. ------------------
  168. * removed usage of the native QP encoder when the charset is not UTF-8
  169. * fixed usage of uniqid to avoid collisions
  170. * made a performance improvement when tokenizing large headers
  171. * fixed usage of the PHP native QP encoder on PHP 5.4.7+
  172. 4.3.0 (2013-01-08)
  173. ------------------
  174. * made the temporary directory configurable via the TMPDIR env variable
  175. * added S/MIME signer and encryption support
  176. 4.2.2 (2012-10-25)
  177. ------------------
  178. * added the possibility to throttle messages per second in ThrottlerPlugin (mostly for Amazon SES)
  179. * switched mime.qpcontentencoder to automatically use the PHP native encoder on PHP 5.4.7+
  180. * allowed specifying a whitelist with regular expressions in RedirectingPlugin
  181. 4.2.1 (2012-07-13)
  182. ------------------
  183. * changed the coding standards to PSR-1/2
  184. * fixed issue with autoloading
  185. * added NativeQpContentEncoder to enhance performance (for PHP 5.3+)
  186. 4.2.0 (2012-06-29)
  187. ------------------
  188. * added documentation about how to use the Japanese support introduced in 4.1.8
  189. * added a way to override the default configuration in a lazy way
  190. * changed the PEAR init script to lazy-load the initialization
  191. * fixed a bug when calling Swift_Preferences before anything else (regression introduced in 4.1.8)
  192. 4.1.8 (2012-06-17)
  193. ------------------
  194. * added Japanese iso-2022-jp support
  195. * changed the init script to lazy-load the initialization
  196. * fixed docblocks (@id) which caused some problems with libraries parsing the dobclocks
  197. * fixed Swift_Mime_Headers_IdentificationHeader::setId() when passed an array of ids
  198. * fixed encoding of email addresses in headers
  199. * added replacements setter to the Decorator plugin
  200. 4.1.7 (2012-04-26)
  201. ------------------
  202. * fixed QpEncoder safeMapShareId property
  203. 4.1.6 (2012-03-23)
  204. ------------------
  205. * reduced the size of serialized Messages
  206. 4.1.5 (2012-01-04)
  207. ------------------
  208. * enforced Swift_Spool::queueMessage() to return a Boolean
  209. * made an optimization to the memory spool: start the transport only when required
  210. * prevented stream_socket_client() from generating an error and throw a Swift_TransportException instead
  211. * fixed a PHP warning when calling to mail() when safe_mode is off
  212. * many doc tweaks
  213. 4.1.4 (2011-12-16)
  214. ------------------
  215. * added a memory spool (Swift_MemorySpool)
  216. * fixed too many opened files when sending emails with attachments
  217. 4.1.3 (2011-10-27)
  218. ------------------
  219. * added STARTTLS support
  220. * added missing @return tags on fluent methods
  221. * added a MessageLogger plugin that logs all sent messages
  222. * added composer.json
  223. 4.1.2 (2011-09-13)
  224. ------------------
  225. * fixed wrong detection of magic_quotes_runtime
  226. * fixed fatal errors when no To or Subject header has been set
  227. * fixed charset on parameter header continuations
  228. * added documentation about how to install Swiftmailer from the PEAR channel
  229. * fixed various typos and markup problem in the documentation
  230. * fixed warning when cache directory does not exist
  231. * fixed "slashes are escaped" bug
  232. * changed require_once() to require() in autoload
  233. 4.1.1 (2011-07-04)
  234. ------------------
  235. * added missing file in PEAR package
  236. 4.1.0 (2011-06-30)
  237. ------------------
  238. * documentation has been converted to ReST
  239. 4.1.0 RC1 (2011-06-17)
  240. ----------------------
  241. New features:
  242. * changed the Decorator Plugin to allow replacements in all headers
  243. * added Swift_Mime_Grammar and Swift_Validate to validate an email address
  244. * modified the autoloader to lazy-initialize Swiftmailer
  245. * removed Swift_Mailer::batchSend()
  246. * added NullTransport
  247. * added new plugins: RedirectingPlugin and ImpersonatePlugin
  248. * added a way to send messages asynchronously (Spool)