1 2008-08-12 Atsushi Enomoto <atsushi@ximian.com>
3 * SmtpClient.cs : fixed bug #392682, in the same spirit in the
4 patch by Ted Unangst, to assure safety on socket closing.
6 2008-08-07 Atsushi Enomoto <atsushi@ximian.com>
8 * SmtpClient.cs : Fixed bug #392809, patch by Ted Unangst. Text body
9 was not copied to byte array which is being sent.
11 2008-04-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
13 * SmtpClient.cs: Fix bug with string handling
15 2008-04-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
17 * SmtpClient.cs: Fix formatting
19 2008-04-20 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
21 * SmtpClient.cs: made ParseExtension() work. After STARTTLS, reset
22 data retrieved from EHLO.
25 2008-04-03 Juraj Skripsky <js@hotfeet.ch>
27 * Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
30 2008-01-29 Juraj Skripsky <js@hotfeet.ch>
32 * SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
34 2008-01-29 Juraj Skripsky <js@hotfeet.ch>
36 * SmtpClient.cs: Remove ':' from the time zone offset in the
37 mail's date field. Fixes bug #351443.
38 (ToQuotedPrintable): Make sure text encoded as quoted-printable does
39 not contain more then 76 chars per line (required by rfc1521). Fixes
42 2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
44 * AlternateView.cs : supply charset info for ContentType.
45 * SmtpClient.cs : for ToQuotedPrintable() input, don't use utf8
46 StreamReader to get input string. Just use Encoding.GetBytes().
49 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
51 * MailMessage.cs : fixing cosmetic .net compatibility. Automatically
52 fill ASCII when guessed encoding is nothing.
54 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
56 * SmtpClient.cs : fold base64 string at 76 characters.
57 Should fix bug #344974.
59 2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
61 * Attachment.cs : use correct TransferEncoding when (Text)Encoding
63 * MailMessage.cs : ContentTransferEncoding implementation went into
66 2007-12-04 Arina Itkes <arinai@mainsoft.com>
68 * SmtpException.cs, SmtpFailedRecipientException.cs,
69 SmtpFailedRecipientsException.cs:
70 Changes for SOAP serialization compatibility with .NET.
72 2007-11-05 Atsushi Enomoto <atsushi@ximian.com>
75 * AlternateView.cs : CreateAlternateViewFromString() allows null
77 * SmtpClient.cs : looks like when Body is null and AlternativeViews
78 contains only 1 item, then the alternate view becomes as if it
79 were just a body. To make this possible, added couple of more
80 transfer-encoding conversion methods.
81 For more AlternateViews cases, Body is treated
82 as empty. With attachments it is even complicated: those alternate
83 views are just in one boundary, so do not send empty string.
84 Removed debug output (Console.WriteLine).
88 2007-10-30 Arina Itkes <arinai@mainsoft.com>
90 * SmtpClient.cs: Fix of SmtpClient.Read() method:
91 Added check of string position before calling
92 Substring and IndexOf methods of string.
94 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
96 * SmtpClient.cs : small async refactory.
98 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
100 * SmtpClient.cs : Implemented async operations.
102 2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
104 * Attachment.cs : reverted previous change. NameEncoding is not
105 guessed at set_Name().
107 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
109 * SmtpClient.cs : lunatic cyclic build.
111 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
113 * AttachmentBase.cs : implemented Dispose(bool).
115 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
117 * AttachmentCollection.cs : remove TODO.
118 * Attachment.cs : guess NameEncoding when set_Name().
119 * MailMessage.cs : moved encoding guess impl to ContentType.
120 * SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
121 Support attachment Name encoding. Added some SSL changes (it's not
124 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
126 * SmtpClient.cs : attachment refactory. First, determine whether we
127 send multipart/mixed for attachments. Second, determine whether we
128 send multipart/alternative for AlternateViews.
129 Consider LinkedResources. Mark EnableSsl as TODO.
131 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
133 * LinkedResource.cs : Now they are implemented and soon to be
134 supported. Fixed TransferEncoding (same as other AttachmentBase).
136 2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
138 * Attachment.cs : null name is allowed.
140 2007-10-19 Atsushi Enomoto <atsushi@ximian.com>
142 * AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
143 reverted default back to TransferEncoding.Base64 again, and use
144 QuotedPrintable only when created from string.
145 No need to check null Stream at AlternateView.ctor(). See base.
146 * SmtpClient.cs : For multipart message, do not send body twice (it
147 still emits extraneous part, which should be fixed too).
148 Do not premise charset existence in every AttachmentBase.
150 2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
152 * AlternateView.cs : dispose linked resources. Remove MonoTODOs.
153 * Attachment.cs : check null content string.
154 The string argument in .ctor(Stream,string) is name, not mediaType.
155 Use contentEncoding argument in CreateAttachmentFromString().
156 * AttachmentBase.cs : TransferEncoding default is QuotedPrintable.
158 2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
160 * MailMessage.cs : removed MonoTODO. some comment.
161 * SmtpException.cs, SmtpFailedRecipientsException.cs,
162 SmtpFailedRecipientException.cs : implemented serialization.
164 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
166 * SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
167 3 string.Replace() calls.
169 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
171 * SmtpClient.cs : do state check on other setters than set_Timeout().
173 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
175 * MailMessage.cs : Some entire refactory on BodyEncoding and
176 IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
177 Body and Subject are set for each.
179 Subject header is encoded according to RFC 2047.
180 Body is encoded according to RFC 2821.
182 ToQuotedPrintable() should take encoding into consideration.
183 For SevenBit/Unknown TransferEncoding, just decode with ASCII.
184 In set_UseDefaultCredentials(), raise NIE only when value is true.
185 In set_Timeout(), raise an error when Send() is in progress.
187 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
189 * SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821
190 section 2.3.7, or you will receive SMTP error 451.
192 2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
194 * AlternateViewCollection.cs, LinkedResourceCollection.cs,
195 AttachmentCollection.cs : added missing 2.0 members.
197 2007-06-17 Gert Driesen <drieseng@users.sourceforge.net>
199 * MailAddress.cs: Throw ArgumentNullException if address is null.
200 Allow display name to be specified as part of the address. Fixes
201 bug #81854. Return zero-length string in DisplayName if no display
204 2007-05-31 Jeffrey Stedfast <fejj@gnome.org>
206 * SmtpClient.cs: Added an extensions parser to figure out if the
207 ESMTP server supports things like STARTTLS and which AUTH
208 mechanisms are supported. Don't try authenticating if no authmechs
211 2007-05-30 Jeffrey Stedfast <fejj@novell.com>
213 * SmtpClient.cs: Fall back to HELO if EHLO fails. Also, do not
214 write out a Bcc header to the SMTP server - these are meant to be
215 dropped. MAIL FROM: and RCPT TO: commands are not meant to have a
216 space after the colon before the address - this will break on some
219 2007-02-16 Geoff Norton <gnorton@customerdna.com>
221 * SmtpClient.cs: Dont send bare LF. Send <CR><LF> regardless
222 of platform. (ref: http://cr.yp.to/docs/smtplf.html)
224 2007-01-20 Miguel de Icaza <miguel@novell.com>
226 * MailMessage.cs: Add suport to the MailMessage constructor to
227 take a comma-separated list of addresses (Bug #80548).
229 2006-12-12 Miguel de Icaza <miguel@novell.com>
231 * MailMessage.cs: Fix this code so that it correctly reports
232 ArgumentNullExceptions.
234 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
236 * SmtpClient.cs : use CONFIGURATION_DEP when it is
237 System.Configuration.dll dependent.
239 2006-12-10 David Elkind <davide@mainsoft.com>
241 * Attachment.cs - proper file name handling added
242 * AttachmentBase.cs - proper MIME type handling added
243 * MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
244 * MailMessage.cs - Better construction sequence
245 * SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
246 - Added handling of user credentials
247 - Added handling of TLS (under TARGET_JVM)
248 - Some other minor fixes
250 2006-12-04 Konstantin Triger <kostat@mainsoft.com>
252 * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM limitation workaround.
254 2006-12-01 Sebastien Pouliot <sebastien@ximian.com>
256 * SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and
257 updated existing MonoTODO (or changed them to FIXME) to be clearer
258 for anyone using the API.
260 2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
262 * SmtpException.cs: Fix visibility on .ctor(SerializationInfo,
264 * SmtpPermissionAttribute.cs: New (2.0). Security attribute for SMTP.
265 * SmtpPermission.cs: New (2.0). Security permission for SMTP.
267 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
269 * SmtpClient.cs: TARGET_JVM
271 2006-03-11 Miguel de Icaza <miguel@novell.com>
273 * MailAddress.cs: Comment out unused field to remove warning.
275 2006-1-13 John Luke <john.luke@gmail.com>
277 * MailMessage.cs: add [MonoTODO] for FormatException in ctor,
278 throw ArugmentNullException's from the ctors,
279 add internal BodyContentType property,
280 change BodyEncoding to use BodyContentType,
281 change IsBodyHtml to use BodyContentType,
282 * SmtpClient.cs: set timeout initially to 100000,
283 don't throw ArgumentOutOfRangeException when Timeout = 0,
284 add [MonoTODO] for set_host, and throw Exceptions for it,
285 add [MonoTODO] for UseDefaultCredentials,
286 get messageContentType from the message,
287 use "127.0.0.1" for Host and 25 for Port
288 if host or port is not specified until reading
289 them from the configuration files is done
291 2006-1-02 John Luke <john.luke@gmail.com>
293 * DeliveryNotificationOptions: fix value of Delay
295 2005-12-26 John Luke <john.luke@gmail.com>
297 * AttachmentCollection.cs: mark sealed
298 * DeliveryNotificationOptions.cs: fix values
300 2005-12-25 John Luke <john.luke@gmail.com>
302 * SmtpStatusCode.cs: OK > Ok
303 * AttachmentBase.cs: ContentID > ContentId,
305 * AlternateViewCollection.cs: remove destructor,
306 make default ctor internal
307 * MailMessage.cs: add default ctor,
309 * Attachment.cs: add (string, string) ctor,
311 * LinkedResourceCollection.cs: remove destructor,
312 make default ctor internal
313 * AttachmentCollection.cs: mark Dispose virtual,
314 add ISerializable, make default ctor internal
316 2005-12-24 John Luke <john.luke@gmail.com>
318 * LinkedResource.cs: new File
319 * AttachmentBase.cs: new File
320 * MailPriority.cs: new File
321 * AlternateViewCollection.cs: new File
322 * DeliveryNotificationOptions.cs: new File
323 * SmtpFailedRecipientException.cs: new File
324 * AlternateView.cs: new File
325 * LinkedResourceCollection.cs: new File
326 * MailMessage.cs: add some missing properties, update API for 2.0 final
327 * Attachment.cs: inherit from AttachmentBase, update API for 2.0 final
328 * MailAddress.cs: fix ToString, override Equals and GetHashCode
329 * SmtpFailedRecipientsException.cs: use SmtpFailedRecipientException
330 * SmtpException.cs: add [Serializable], ISerializable
331 * MailAddressCollection.cs: inherit from Collection<MailAddress>
332 * AttachmentCollection.cs: inherit from Collection<Attachment>
333 * SmtpAccess.cs: add missing value
334 * SmtpClient.cs: update for 2.0 final API
335 * SmtpStatusCode.cs: add missing value
336 2005-12-24 John Luke <john.luke@gmail.com>
338 * MailMessage.cs: use text/plain by default,
339 patch by Andy Waddell <awaddell@fnfr.com>,
342 2005-12-22 John Luke <john.luke@gmail.com>
344 * SmtpClient.cs: remove use of TransferEncodings that
345 no longer exist in .net 2 final API
347 2005-12-14 Chris Toshok <toshok@ximian.com>
349 * SmtpDeliveryMethod.cs: new enum.
351 2004-09-10 Tim Coleman <tim@timcoleman.com>
352 * SmtpClient.cs SmtpFailedRecipientsException.cs:
353 Add failed recipient exception handling.
355 2004-09-09 Tim Coleman <tim@timcoleman.com>
356 * AttachmentCollection.cs MailAddressCollection.cs:
358 * Attachment.cs: Set content string
359 * MailMessage.cs: Use new collection classes
360 * SmtpClient.cs: Lots of MIME cleanup
362 2004-09-08 Tim Coleman <tim@timcoleman.com>
363 * Attachment.cs: Add SetContentFromFile methods
364 * MailMessage.cs: Add MIME-Version header
365 * SmtpClient.cs: Add some attachment handling.
367 2004-09-04 Tim Coleman <tim@timcoleman.com>
368 * Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
369 * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
370 New class stubs for 2.0