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