MS. Removed upper limit check for Port. Modified Send to no longer
allow a whitespace-only Host. Moved checks for SpecifiedPickupDirectory
delivery method to SendFile, and use Path.IsPathRooted to check for
absolute paths instead of using a unix-only check. In Send, wrap all
non-SMTP errors in an SmtpException.
* SmtpException.cs: Correctly chain up all .ctors. Removed extra
null check in deserialization .ctor.
* SmtpClientTest.cs: Added property tests. Added Send argument check
tests.
* SmtpExceptionTest.cs: Added .ctor and GetObjectData tests.
* System_test.dll.sources: Added SmtpExceptionTest.cs.
svn path=/trunk/mcs/; revision=110647
* ContentType.cs : for SubjectEncoding, null is returned instead of
ASCII (.net compat way). For this cosmetic change, BodyEncoding is
changed to fill ASCII automatically.
* MailMessage.cs : fixing cosmetic .net compatibility. Automatically
fill ASCII when guessed encoding is nothing.
* MailMessageTest.cs : fixed test to just compare codepage. I can't
stand with this trivial difference (w/ BOM or not) as regression,
and fixing this "regression" causes practical bug (garbage BOM
insertion).
svn path=/trunk/mcs/; revision=90771
fixed bug #339037.
* AlternateView.cs : CreateAlternateViewFromString() allows null
Encoding.
* SmtpClient.cs : looks like when Body is null and AlternativeViews
contains only 1 item, then the alternate view becomes as if it
were just a body. To make this possible, added couple of more
transfer-encoding conversion methods.
For more AlternateViews cases, Body is treated
as empty. With attachments it is even complicated: those alternate
views are just in one boundary, so do not send empty string.
Removed debug output (Console.WriteLine).
What a mess.
* AlternateViewTest.cs : added test for CreateAlternateViewFromString
with null Encoding arg.
svn path=/trunk/mcs/; revision=88850
* LinkedResource.cs : Now they are implemented and soon to be
supported. Fixed TransferEncoding (same as other AttachmentBase).
* LinkedResourceTest.cs : removed NotWorking.
svn path=/trunk/mcs/; revision=87888
* AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
reverted default back to TransferEncoding.Base64 again, and use
QuotedPrintable only when created from string.
No need to check null Stream at AlternateView.ctor(). See base.
* SmtpClient.cs : For multipart message, do not send body twice (it
still emits extraneous part, which should be fixed too).
Do not premise charset existence in every AttachmentBase.
* AlternateViewTest.cs : default TransferEncoding value is more
complicated.
svn path=/trunk/mcs/; revision=87814
* MailMessage.cs : Some entire refactory on BodyEncoding and
IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
Body and Subject are set for each.
* SmtpClient.cs :
Subject header is encoded according to RFC 2047.
Body is encoded according to RFC 2821.
Output Date header.
ToQuotedPrintable() should take encoding into consideration.
For SevenBit/Unknown TransferEncoding, just decode with ASCII.
In set_UseDefaultCredentials(), raise NIE only when value is true.
In set_Timeout(), raise an error when Send() is in progress.
* MailMessageTest.cs : added test for encoding guess.
svn path=/trunk/mcs/; revision=87585
Allow display name to be specified as part of the address. Fixes
bug #81854. Return zero-length string in DisplayName if no display
name is set.
* MailAddressTest.cs: Added tests for ctors and specifying display
name as part of address.
svn path=/trunk/mcs/; revision=79916
* SmtpPermissionAttributeTest.cs: New. Unit tests for
SmtpPermissionAttribute.
* SmtpPermissionTest.cs: New. Unit tests for SmtpPermission.
svn path=/trunk/mcs/; revision=67188