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