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