for TARGET_J2EE only:
[mono.git] / mcs / class / System / System.Net.Mail / ChangeLog
1 2007-12-06  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * AlternateView.cs : supply charset info for ContentType.
4         * SmtpClient.cs : for ToQuotedPrintable() input, don't use utf8
5           StreamReader to get input string. Just use Encoding.GetBytes().
6           Fixed bug #346162.
7
8 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
9
10         * MailMessage.cs : fixing cosmetic .net compatibility. Automatically
11           fill ASCII when guessed encoding is nothing.
12
13 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
14
15         * SmtpClient.cs : fold base64 string at 76 characters.
16           Should fix bug #344974.
17
18 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
19
20         * Attachment.cs : use correct TransferEncoding when (Text)Encoding
21           is specified.
22         * MailMessage.cs : ContentTransferEncoding implementation went into
23           ContentType.
24
25 2007-12-04  Arina Itkes <arinai@mainsoft.com>
26
27         * SmtpException.cs, SmtpFailedRecipientException.cs,
28           SmtpFailedRecipientsException.cs: 
29           Changes for SOAP serialization compatibility with .NET. 
30
31 2007-11-05  Atsushi Enomoto  <atsushi@ximian.com>
32
33         fixed bug #339037.
34         * AlternateView.cs : CreateAlternateViewFromString() allows null
35           Encoding.
36         * SmtpClient.cs : looks like when Body is null and AlternativeViews
37           contains only 1 item, then the alternate view becomes as if it
38           were just a body. To make this possible, added couple of more
39           transfer-encoding conversion methods.
40           For more AlternateViews cases, Body is treated
41           as empty. With attachments it is even complicated: those alternate
42           views are just in one boundary, so do not send empty string.
43           Removed debug output (Console.WriteLine).
44
45           What a mess.
46
47 2007-10-30 Arina Itkes <arinai@mainsoft.com>
48
49         * SmtpClient.cs: Fix of SmtpClient.Read() method:
50         Added check of string position before calling 
51         Substring and IndexOf methods of string.
52
53 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
54
55         * SmtpClient.cs : small async refactory.
56
57 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
58
59         * SmtpClient.cs : Implemented async operations.
60
61 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
62
63         * Attachment.cs : reverted previous change. NameEncoding is not
64           guessed at set_Name().
65
66 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
67
68         * SmtpClient.cs : lunatic cyclic build.
69
70 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
71
72         * AttachmentBase.cs : implemented Dispose(bool).
73
74 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
75
76         * AttachmentCollection.cs : remove TODO.
77         * Attachment.cs : guess NameEncoding when set_Name().
78         * MailMessage.cs : moved encoding guess impl to ContentType.
79         * SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
80           Support attachment Name encoding. Added some SSL changes (it's not
81           working yet).
82
83 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
84
85         * SmtpClient.cs : attachment refactory. First, determine whether we
86           send multipart/mixed for attachments. Second, determine whether we
87           send multipart/alternative for AlternateViews.
88           Consider LinkedResources. Mark EnableSsl as TODO.
89
90 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
91
92         * LinkedResource.cs : Now they are implemented and soon to be
93           supported. Fixed TransferEncoding (same as other AttachmentBase).
94
95 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
96
97         * Attachment.cs : null name is allowed.
98
99 2007-10-19  Atsushi Enomoto  <atsushi@ximian.com>
100
101         * AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
102           reverted default back to TransferEncoding.Base64 again, and use
103           QuotedPrintable only when created from string.
104           No need to check null Stream at AlternateView.ctor(). See base.
105         * SmtpClient.cs : For multipart message, do not send body twice (it
106           still emits extraneous part, which should be fixed too).
107           Do not premise charset existence in every AttachmentBase.
108
109 2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
110
111         * AlternateView.cs : dispose linked resources. Remove MonoTODOs.
112         * Attachment.cs : check null content string.
113           The string argument in .ctor(Stream,string) is name, not mediaType.
114           Use contentEncoding argument in CreateAttachmentFromString().
115         * AttachmentBase.cs : TransferEncoding default is QuotedPrintable.
116
117 2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
118
119         * MailMessage.cs : removed MonoTODO. some comment.
120         * SmtpException.cs, SmtpFailedRecipientsException.cs,
121           SmtpFailedRecipientException.cs : implemented serialization.
122
123 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
124
125         * SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
126           3 string.Replace() calls.
127
128 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
129
130         * SmtpClient.cs : do state check on other setters than set_Timeout().
131
132 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
133
134         * MailMessage.cs : Some entire refactory on BodyEncoding and
135           IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
136           Body and Subject are set for each.
137         * SmtpClient.cs :
138           Subject header is encoded according to RFC 2047.
139           Body is encoded according to RFC 2821.
140           Output Date header.
141           ToQuotedPrintable() should take encoding into consideration.
142           For SevenBit/Unknown TransferEncoding, just decode with ASCII.
143           In set_UseDefaultCredentials(), raise NIE only when value is true.
144           In set_Timeout(), raise an error when Send() is in progress.
145
146 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
147
148         * SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821 
149           section 2.3.7, or you will receive SMTP error 451.
150
151 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
152
153         * AlternateViewCollection.cs, LinkedResourceCollection.cs,
154           AttachmentCollection.cs : added missing 2.0 members.
155
156 2007-06-17  Gert Driesen  <drieseng@users.sourceforge.net>
157
158         * MailAddress.cs: Throw ArgumentNullException if address is null.
159         Allow display name to be specified as part of the address. Fixes
160         bug #81854. Return zero-length string in DisplayName if no display 
161         name is set.
162
163 2007-05-31  Jeffrey Stedfast  <fejj@gnome.org>
164
165         * SmtpClient.cs: Added an extensions parser to figure out if the
166         ESMTP server supports things like STARTTLS and which AUTH
167         mechanisms are supported. Don't try authenticating if no authmechs
168         are supported.
169
170 2007-05-30  Jeffrey Stedfast  <fejj@novell.com>
171
172         * SmtpClient.cs: Fall back to HELO if EHLO fails. Also, do not
173         write out a Bcc header to the SMTP server - these are meant to be
174         dropped. MAIL FROM: and RCPT TO: commands are not meant to have a
175         space after the colon before the address - this will break on some
176         SMTP servers.
177
178 2007-02-16  Geoff Norton  <gnorton@customerdna.com>
179
180         * SmtpClient.cs: Dont send bare LF.  Send <CR><LF> regardless
181         of platform.  (ref: http://cr.yp.to/docs/smtplf.html)
182
183 2007-01-20  Miguel de Icaza  <miguel@novell.com>
184
185         * MailMessage.cs: Add suport to the MailMessage constructor to
186         take a comma-separated list of addresses (Bug #80548). 
187
188 2006-12-12  Miguel de Icaza  <miguel@novell.com>
189
190         * MailMessage.cs: Fix this code so that it correctly reports
191         ArgumentNullExceptions.
192
193 2006-12-12  Atsushi Enomoto  <atsushi@ximian.com>
194
195         * SmtpClient.cs : use CONFIGURATION_DEP when it is
196           System.Configuration.dll dependent.
197
198 2006-12-10  David Elkind  <davide@mainsoft.com>
199
200         * Attachment.cs - proper file name handling added
201         * AttachmentBase.cs - proper MIME type handling added
202         * MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
203         * MailMessage.cs - Better construction sequence
204         * SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
205                         - Added handling of user credentials 
206                         - Added handling of TLS (under TARGET_JVM)
207                         - Some other minor fixes
208
209 2006-12-04  Konstantin Triger  <kostat@mainsoft.com>
210
211         * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM limitation workaround.
212
213 2006-12-01  Sebastien Pouliot  <sebastien@ximian.com>
214
215         * SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and 
216         updated existing MonoTODO (or changed them to FIXME) to be clearer
217         for anyone using the API.
218
219 2006-10-31  Sebastien Pouliot  <sebastien@ximian.com>
220
221         * SmtpException.cs: Fix visibility on .ctor(SerializationInfo,
222         StreamingContext).
223         * SmtpPermissionAttribute.cs: New (2.0). Security attribute for SMTP.
224         * SmtpPermission.cs: New (2.0). Security permission for SMTP.
225
226 2006-09-28  Andrew Skiba  <andrews@mainsoft.com>
227
228         * SmtpClient.cs: TARGET_JVM
229
230 2006-03-11  Miguel de Icaza  <miguel@novell.com>
231
232         * MailAddress.cs: Comment out unused field to remove warning. 
233
234 2006-1-13  John Luke  <john.luke@gmail.com>
235
236         * MailMessage.cs: add [MonoTODO] for FormatException in ctor,
237         throw ArugmentNullException's from the ctors,
238         add internal BodyContentType property,
239         change BodyEncoding to use BodyContentType,
240         change IsBodyHtml to use BodyContentType,
241         * SmtpClient.cs: set timeout initially to 100000,
242         don't throw ArgumentOutOfRangeException when Timeout = 0,
243         add [MonoTODO] for set_host, and throw Exceptions for it,
244         add [MonoTODO] for UseDefaultCredentials,
245         get messageContentType from the message,
246         use "127.0.0.1" for Host and 25 for Port
247         if host or port is not specified until reading
248         them from the configuration files is done
249
250 2006-1-02  John Luke  <john.luke@gmail.com>
251
252         * DeliveryNotificationOptions: fix value of Delay
253         
254 2005-12-26  John Luke  <john.luke@gmail.com>
255
256         * AttachmentCollection.cs: mark sealed
257         * DeliveryNotificationOptions.cs: fix values
258         
259 2005-12-25  John Luke  <john.luke@gmail.com>
260
261         * SmtpStatusCode.cs: OK > Ok
262         * AttachmentBase.cs: ContentID > ContentId,
263         add set_ContentType
264         * AlternateViewCollection.cs: remove destructor,
265         make default ctor internal
266         * MailMessage.cs: add default ctor,
267         remove destructor
268         * Attachment.cs: add (string, string) ctor,
269         add set_NameEncoding
270         * LinkedResourceCollection.cs: remove destructor,
271         make default ctor internal
272         * AttachmentCollection.cs: mark Dispose virtual,
273         add ISerializable, make default ctor internal
274
275 2005-12-24  John Luke  <john.luke@gmail.com>
276
277         * LinkedResource.cs: new File
278         * AttachmentBase.cs: new File
279         * MailPriority.cs: new File
280         * AlternateViewCollection.cs: new File
281         * DeliveryNotificationOptions.cs: new File
282         * SmtpFailedRecipientException.cs: new File
283         * AlternateView.cs: new File
284         * LinkedResourceCollection.cs: new File
285         * MailMessage.cs: add some missing properties, update API for 2.0 final 
286         * Attachment.cs: inherit from AttachmentBase, update API for 2.0 final
287         * MailAddress.cs: fix ToString, override Equals and GetHashCode
288         * SmtpFailedRecipientsException.cs: use SmtpFailedRecipientException
289         * SmtpException.cs: add [Serializable], ISerializable
290         * MailAddressCollection.cs: inherit from Collection<MailAddress>
291         * AttachmentCollection.cs: inherit from Collection<Attachment>
292         * SmtpAccess.cs: add missing value
293         * SmtpClient.cs: update for 2.0 final API
294         * SmtpStatusCode.cs: add missing value
295 2005-12-24  John Luke  <john.luke@gmail.com>
296
297         * MailMessage.cs: use text/plain by default,
298         patch by Andy Waddell <awaddell@fnfr.com>,
299         fixes bug #76972
300
301 2005-12-22  John Luke  <john.luke@gmail.com>
302
303         * SmtpClient.cs: remove use of TransferEncodings that
304         no longer exist in .net 2 final API
305         
306 2005-12-14  Chris Toshok  <toshok@ximian.com>
307
308         * SmtpDeliveryMethod.cs: new enum.
309
310 2004-09-10  Tim Coleman <tim@timcoleman.com>
311         * SmtpClient.cs SmtpFailedRecipientsException.cs:
312                 Add failed recipient exception handling.
313
314 2004-09-09  Tim Coleman <tim@timcoleman.com>
315         * AttachmentCollection.cs MailAddressCollection.cs:
316                 New classes
317         * Attachment.cs: Set content string
318         * MailMessage.cs: Use new collection classes
319         * SmtpClient.cs: Lots of MIME cleanup
320
321 2004-09-08  Tim Coleman <tim@timcoleman.com>
322         * Attachment.cs: Add SetContentFromFile methods
323         * MailMessage.cs: Add MIME-Version header
324         * SmtpClient.cs: Add some attachment handling.
325
326 2004-09-04  Tim Coleman <tim@timcoleman.com>
327         * Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
328         * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
329                 New class stubs for 2.0