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