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