2 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
4 * SmtpClient.cs: remove unused variable and obsolete comment.
6 2008-09-17 Miguel de Icaza <miguel@novell.com>
8 * SmtpClient.cs: Actually set some of the headers like Priority,
11 2008-09-05 Atsushi Enomoto <atsushi@ximian.com>
13 * SmtpClient.cs : attachment stream consumption was insufficient.
14 Fix bug #347553, by David Ion.
16 2008-08-16 Gert Driesen <drieseng@users.sourceforge.net>
18 * SmtpClient.cs: Fixed paramname of Argument(Null)Exceptions to match
19 MS. Removed upper limit check for Port. Modified Send to no longer
20 allow a whitespace-only Host. Moved checks for SpecifiedPickupDirectory
21 delivery method to SendFile, and use Path.IsPathRooted to check for
22 absolute paths instead of using a unix-only check. In Send, wrap all
23 non-SMTP errors in an SmtpException.
24 * SmtpException.cs: Correctly chain up all .ctors. Removed extra
25 null check in deserialization .ctor.
27 2008-08-15 Atsushi Enomoto <atsushi@ximian.com>
29 * SmtpClient.cs : fixed bug #382670, based on the patch by Ted
30 Unangst. DeriveryMethod.SpecifiedPickupDirectory was not supported.
32 2008-08-14 Atsushi Enomoto <atsushi@ximian.com>
34 * SmtpClient.cs : Patch by Ted Unangst, fixed bug #392843.
35 Encode emails correctly as well as join multiple emails
38 2008-08-12 Atsushi Enomoto <atsushi@ximian.com>
40 * SmtpClient.cs : fixed bug #392682, in the same spirit in the
41 patch by Ted Unangst, to assure safety on socket closing.
43 2008-08-07 Atsushi Enomoto <atsushi@ximian.com>
45 * SmtpClient.cs : Fixed bug #392809, patch by Ted Unangst. Text body
46 was not copied to byte array which is being sent.
48 2008-04-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
50 * SmtpClient.cs: Fix bug with string handling
52 2008-04-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
54 * SmtpClient.cs: Fix formatting
56 2008-04-20 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
58 * SmtpClient.cs: made ParseExtension() work. After STARTTLS, reset
59 data retrieved from EHLO.
62 2008-04-03 Juraj Skripsky <js@hotfeet.ch>
64 * Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
67 2008-01-29 Juraj Skripsky <js@hotfeet.ch>
69 * SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
71 2008-01-29 Juraj Skripsky <js@hotfeet.ch>
73 * SmtpClient.cs: Remove ':' from the time zone offset in the
74 mail's date field. Fixes bug #351443.
75 (ToQuotedPrintable): Make sure text encoded as quoted-printable does
76 not contain more then 76 chars per line (required by rfc1521). Fixes
79 2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
81 * AlternateView.cs : supply charset info for ContentType.
82 * SmtpClient.cs : for ToQuotedPrintable() input, don't use utf8
83 StreamReader to get input string. Just use Encoding.GetBytes().
86 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
88 * MailMessage.cs : fixing cosmetic .net compatibility. Automatically
89 fill ASCII when guessed encoding is nothing.
91 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
93 * SmtpClient.cs : fold base64 string at 76 characters.
94 Should fix bug #344974.
96 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
98 * Attachment.cs : use correct TransferEncoding when (Text)Encoding
100 * MailMessage.cs : ContentTransferEncoding implementation went into
103 2007-12-04 Arina Itkes <arinai@mainsoft.com>
105 * SmtpException.cs, SmtpFailedRecipientException.cs,
106 SmtpFailedRecipientsException.cs:
107 Changes for SOAP serialization compatibility with .NET.
109 2007-11-05 Atsushi Enomoto <atsushi@ximian.com>
112 * AlternateView.cs : CreateAlternateViewFromString() allows null
114 * SmtpClient.cs : looks like when Body is null and AlternativeViews
115 contains only 1 item, then the alternate view becomes as if it
116 were just a body. To make this possible, added couple of more
117 transfer-encoding conversion methods.
118 For more AlternateViews cases, Body is treated
119 as empty. With attachments it is even complicated: those alternate
120 views are just in one boundary, so do not send empty string.
121 Removed debug output (Console.WriteLine).
125 2007-10-30 Arina Itkes <arinai@mainsoft.com>
127 * SmtpClient.cs: Fix of SmtpClient.Read() method:
128 Added check of string position before calling
129 Substring and IndexOf methods of string.
131 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
133 * SmtpClient.cs : small async refactory.
135 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
137 * SmtpClient.cs : Implemented async operations.
139 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
141 * Attachment.cs : reverted previous change. NameEncoding is not
142 guessed at set_Name().
144 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
146 * SmtpClient.cs : lunatic cyclic build.
148 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
150 * AttachmentBase.cs : implemented Dispose(bool).
152 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
154 * AttachmentCollection.cs : remove TODO.
155 * Attachment.cs : guess NameEncoding when set_Name().
156 * MailMessage.cs : moved encoding guess impl to ContentType.
157 * SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
158 Support attachment Name encoding. Added some SSL changes (it's not
161 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
163 * SmtpClient.cs : attachment refactory. First, determine whether we
164 send multipart/mixed for attachments. Second, determine whether we
165 send multipart/alternative for AlternateViews.
166 Consider LinkedResources. Mark EnableSsl as TODO.
168 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
170 * LinkedResource.cs : Now they are implemented and soon to be
171 supported. Fixed TransferEncoding (same as other AttachmentBase).
173 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
175 * Attachment.cs : null name is allowed.
177 2007-10-19 Atsushi Enomoto <atsushi@ximian.com>
179 * AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
180 reverted default back to TransferEncoding.Base64 again, and use
181 QuotedPrintable only when created from string.
182 No need to check null Stream at AlternateView.ctor(). See base.
183 * SmtpClient.cs : For multipart message, do not send body twice (it
184 still emits extraneous part, which should be fixed too).
185 Do not premise charset existence in every AttachmentBase.
187 2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
189 * AlternateView.cs : dispose linked resources. Remove MonoTODOs.
190 * Attachment.cs : check null content string.
191 The string argument in .ctor(Stream,string) is name, not mediaType.
192 Use contentEncoding argument in CreateAttachmentFromString().
193 * AttachmentBase.cs : TransferEncoding default is QuotedPrintable.
195 2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
197 * MailMessage.cs : removed MonoTODO. some comment.
198 * SmtpException.cs, SmtpFailedRecipientsException.cs,
199 SmtpFailedRecipientException.cs : implemented serialization.
201 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
203 * SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
204 3 string.Replace() calls.
206 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
208 * SmtpClient.cs : do state check on other setters than set_Timeout().
210 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
212 * MailMessage.cs : Some entire refactory on BodyEncoding and
213 IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
214 Body and Subject are set for each.
216 Subject header is encoded according to RFC 2047.
217 Body is encoded according to RFC 2821.
219 ToQuotedPrintable() should take encoding into consideration.
220 For SevenBit/Unknown TransferEncoding, just decode with ASCII.
221 In set_UseDefaultCredentials(), raise NIE only when value is true.
222 In set_Timeout(), raise an error when Send() is in progress.
224 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
226 * SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821
227 section 2.3.7, or you will receive SMTP error 451.
229 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
231 * AlternateViewCollection.cs, LinkedResourceCollection.cs,
232 AttachmentCollection.cs : added missing 2.0 members.
234 2007-06-17 Gert Driesen <drieseng@users.sourceforge.net>
236 * MailAddress.cs: Throw ArgumentNullException if address is null.
237 Allow display name to be specified as part of the address. Fixes
238 bug #81854. Return zero-length string in DisplayName if no display
241 2007-05-31 Jeffrey Stedfast <fejj@gnome.org>
243 * SmtpClient.cs: Added an extensions parser to figure out if the
244 ESMTP server supports things like STARTTLS and which AUTH
245 mechanisms are supported. Don't try authenticating if no authmechs
248 2007-05-30 Jeffrey Stedfast <fejj@novell.com>
250 * SmtpClient.cs: Fall back to HELO if EHLO fails. Also, do not
251 write out a Bcc header to the SMTP server - these are meant to be
252 dropped. MAIL FROM: and RCPT TO: commands are not meant to have a
253 space after the colon before the address - this will break on some
256 2007-02-16 Geoff Norton <gnorton@customerdna.com>
258 * SmtpClient.cs: Dont send bare LF. Send <CR><LF> regardless
259 of platform. (ref: http://cr.yp.to/docs/smtplf.html)
261 2007-01-20 Miguel de Icaza <miguel@novell.com>
263 * MailMessage.cs: Add suport to the MailMessage constructor to
264 take a comma-separated list of addresses (Bug #80548).
266 2006-12-12 Miguel de Icaza <miguel@novell.com>
268 * MailMessage.cs: Fix this code so that it correctly reports
269 ArgumentNullExceptions.
271 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
273 * SmtpClient.cs : use CONFIGURATION_DEP when it is
274 System.Configuration.dll dependent.
276 2006-12-10 David Elkind <davide@mainsoft.com>
278 * Attachment.cs - proper file name handling added
279 * AttachmentBase.cs - proper MIME type handling added
280 * MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
281 * MailMessage.cs - Better construction sequence
282 * SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
283 - Added handling of user credentials
284 - Added handling of TLS (under TARGET_JVM)
285 - Some other minor fixes
287 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
289 * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM limitation workaround.
291 2006-12-01 Sebastien Pouliot <sebastien@ximian.com>
293 * SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and
294 updated existing MonoTODO (or changed them to FIXME) to be clearer
295 for anyone using the API.
297 2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
299 * SmtpException.cs: Fix visibility on .ctor(SerializationInfo,
301 * SmtpPermissionAttribute.cs: New (2.0). Security attribute for SMTP.
302 * SmtpPermission.cs: New (2.0). Security permission for SMTP.
304 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
306 * SmtpClient.cs: TARGET_JVM
308 2006-03-11 Miguel de Icaza <miguel@novell.com>
310 * MailAddress.cs: Comment out unused field to remove warning.
312 2006-1-13 John Luke <john.luke@gmail.com>
314 * MailMessage.cs: add [MonoTODO] for FormatException in ctor,
315 throw ArugmentNullException's from the ctors,
316 add internal BodyContentType property,
317 change BodyEncoding to use BodyContentType,
318 change IsBodyHtml to use BodyContentType,
319 * SmtpClient.cs: set timeout initially to 100000,
320 don't throw ArgumentOutOfRangeException when Timeout = 0,
321 add [MonoTODO] for set_host, and throw Exceptions for it,
322 add [MonoTODO] for UseDefaultCredentials,
323 get messageContentType from the message,
324 use "127.0.0.1" for Host and 25 for Port
325 if host or port is not specified until reading
326 them from the configuration files is done
328 2006-1-02 John Luke <john.luke@gmail.com>
330 * DeliveryNotificationOptions: fix value of Delay
332 2005-12-26 John Luke <john.luke@gmail.com>
334 * AttachmentCollection.cs: mark sealed
335 * DeliveryNotificationOptions.cs: fix values
337 2005-12-25 John Luke <john.luke@gmail.com>
339 * SmtpStatusCode.cs: OK > Ok
340 * AttachmentBase.cs: ContentID > ContentId,
342 * AlternateViewCollection.cs: remove destructor,
343 make default ctor internal
344 * MailMessage.cs: add default ctor,
346 * Attachment.cs: add (string, string) ctor,
348 * LinkedResourceCollection.cs: remove destructor,
349 make default ctor internal
350 * AttachmentCollection.cs: mark Dispose virtual,
351 add ISerializable, make default ctor internal
353 2005-12-24 John Luke <john.luke@gmail.com>
355 * LinkedResource.cs: new File
356 * AttachmentBase.cs: new File
357 * MailPriority.cs: new File
358 * AlternateViewCollection.cs: new File
359 * DeliveryNotificationOptions.cs: new File
360 * SmtpFailedRecipientException.cs: new File
361 * AlternateView.cs: new File
362 * LinkedResourceCollection.cs: new File
363 * MailMessage.cs: add some missing properties, update API for 2.0 final
364 * Attachment.cs: inherit from AttachmentBase, update API for 2.0 final
365 * MailAddress.cs: fix ToString, override Equals and GetHashCode
366 * SmtpFailedRecipientsException.cs: use SmtpFailedRecipientException
367 * SmtpException.cs: add [Serializable], ISerializable
368 * MailAddressCollection.cs: inherit from Collection<MailAddress>
369 * AttachmentCollection.cs: inherit from Collection<Attachment>
370 * SmtpAccess.cs: add missing value
371 * SmtpClient.cs: update for 2.0 final API
372 * SmtpStatusCode.cs: add missing value
373 2005-12-24 John Luke <john.luke@gmail.com>
375 * MailMessage.cs: use text/plain by default,
376 patch by Andy Waddell <awaddell@fnfr.com>,
379 2005-12-22 John Luke <john.luke@gmail.com>
381 * SmtpClient.cs: remove use of TransferEncodings that
382 no longer exist in .net 2 final API
384 2005-12-14 Chris Toshok <toshok@ximian.com>
386 * SmtpDeliveryMethod.cs: new enum.
388 2004-09-10 Tim Coleman <tim@timcoleman.com>
389 * SmtpClient.cs SmtpFailedRecipientsException.cs:
390 Add failed recipient exception handling.
392 2004-09-09 Tim Coleman <tim@timcoleman.com>
393 * AttachmentCollection.cs MailAddressCollection.cs:
395 * Attachment.cs: Set content string
396 * MailMessage.cs: Use new collection classes
397 * SmtpClient.cs: Lots of MIME cleanup
399 2004-09-08 Tim Coleman <tim@timcoleman.com>
400 * Attachment.cs: Add SetContentFromFile methods
401 * MailMessage.cs: Add MIME-Version header
402 * SmtpClient.cs: Add some attachment handling.
404 2004-09-04 Tim Coleman <tim@timcoleman.com>
405 * Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
406 * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
407 New class stubs for 2.0