23 Commits
Author SHA1 Message Date
Alexander Köplinger 112631f5c6 [bcl] Add missing APIs for netstandard parity and expose a few APIs on mobile
This ensures we're compliant with the upcoming netstandard2.0 API surface area.
2016-09-23 17:50:06 +02:00
Ludovic Henry 249daf43de [mcs] Replace NET_2_1 by MOBILE
NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
2016-08-18 16:34:36 +02:00
Alexander Köplinger 3bfea0a776 [System] Port System.Net.Mime namespace from referencesources
A few helper methods that existed in ContentType were moved into MailMessage.
I verified the test changes are required to match MS.NET behavior.
2015-12-24 13:27:12 +01:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Miguel de Icaza dd0bc8418a 2009-12-11 Miguel de Icaza <[email protected]>
* SmtpClient.cs, MailMessage.cs: Add 4.0 APIs.

svn path=/trunk/mcs/; revision=148092
2009-12-11 06:03:45 +00:00
Atsushi Eno 30a99519cf 2007-12-05 Atsushi Enomoto <[email protected]>
* 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
2007-12-05 16:05:27 +00:00
Atsushi Eno 2dec17b103 2007-12-05 Atsushi Enomoto <[email protected]>
* Attachment.cs : use correct TransferEncoding when (Text)Encoding
	  is specified.
	* MailMessage.cs : ContentTransferEncoding implementation went into
	  ContentType.

	* ContentType.cs : added GuessTransferEncoding() to guess correct
	  encoding type for sys.net.mail.Attachment.
	  Here UTF8Encoding should not include BOM.


svn path=/trunk/mcs/; revision=90740
2007-12-05 09:49:37 +00:00
Atsushi Eno 2b86e687c7 2007-10-22 Atsushi Enomoto <[email protected]>
* AttachmentCollection.cs : remove TODO.
	* Attachment.cs : guess NameEncoding when set_Name().
	* MailMessage.cs : moved encoding guess impl to ContentType.
	* SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
	  Support attachment Name encoding. Added some SSL changes (it's not
	  working yet).


svn path=/trunk/mcs/; revision=87907
2007-10-22 13:54:23 +00:00
Atsushi Eno c8c644a223 2007-10-17 Atsushi Enomoto <[email protected]>
* MailMessage.cs : removed MonoTODO. some comment.
	* SmtpException.cs, SmtpFailedRecipientsException.cs,
	  SmtpFailedRecipientException.cs : implemented serialization.


svn path=/trunk/mcs/; revision=87642
2007-10-17 09:28:54 +00:00
Atsushi Eno b0b846d5bb 2007-10-16 Atsushi Enomoto <[email protected]>
* 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
2007-10-16 13:00:28 +00:00
Miguel de Icaza dfd3b52e94 2007-01-20 Miguel de Icaza <[email protected]>
* MailMessage.cs: Add suport to the MailMessage constructor to
	take a comma-separated list of addresses (Bug #80548). 


svn path=/trunk/mcs/; revision=71401
2007-01-20 23:19:29 +00:00
Miguel de Icaza 9f55487e13 Fixed trigger happy commit
svn path=/trunk/mcs/; revision=69410
2006-12-12 16:22:08 +00:00
Miguel de Icaza b35a91a799 2006-12-12 Miguel de Icaza <[email protected]>
* MailMessage.cs: Fix this code so that it correctly reports
	ArgumentNullExceptions.

svn path=/trunk/mcs/; revision=69408
2006-12-12 16:20:29 +00:00
David Elkind a99e078be1 * Attachment.cs - proper file name handling added
* AttachmentBase.cs - proper MIME type handling added
	* MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
	* MailMessage.cs - Better construction sequence
	* SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
			- Added handling of user credentials 
			- Added handling of TLS (under TARGET_JVM)
			- Some other minor fixes

svn path=/trunk/mcs/; revision=69277
2006-12-10 15:29:58 +00:00
John Luke 5b0d1a659f 2006-1-13 John Luke <[email protected]>
* MailMessage.cs: add [MonoTODO] for FormatException in ctor,
        throw ArugmentNullException's from the ctors,
        add internal BodyContentType property,
        change BodyEncoding to use BodyContentType,
        change IsBodyHtml to use BodyContentType,
        * SmtpClient.cs: set timeout initially to 100000,
        don't throw ArgumentOutOfRangeException when Timeout = 0,
        add [MonoTODO] for set_host, and throw Exceptions for it,
        add [MonoTODO] for UseDefaultCredentials,
        get messageContentType from the message,
        use "127.0.0.1" for Host and 25 for Port
        if host or port is not specified until reading
        them from the configuration files is done


svn path=/trunk/mcs/; revision=55549
2006-01-13 20:55:56 +00:00
John Luke 4041414f1b 2005-12-25 John Luke <[email protected]>
* SmtpStatusCode.cs: OK > Ok
        * AttachmentBase.cs: ContentID > ContentId,
        add set_ContentType
        * AlternateViewCollection.cs: remove destructor,
        make default ctor internal
        * MailMessage.cs: add default ctor,
        remove destructor
        * Attachment.cs: add (string, string) ctor,
        add set_NameEncoding
        * LinkedResourceCollection.cs: remove destructor,
        make default ctor internal
        * AttachmentCollection.cs: mark Dispose virtual,
        add ISerializable, make default ctor internal

svn path=/trunk/mcs/; revision=54844
2005-12-26 04:39:36 +00:00
John Luke e76f69132c add missing classes in System.Net.Mail
update many things to the 2.0 final API
and add some tests

svn path=/trunk/mcs/; revision=54835
2005-12-25 03:37:02 +00:00
John Luke b252f551dd 2005-12-24 John Luke <[email protected]>
* MailMessage.cs: use text/plain by default,
        patch by Andy Waddell <[email protected]>,
        fixes bug #76972


svn path=/trunk/mcs/; revision=54834
2005-12-24 17:13:57 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Tim Coleman 1dd5edf8db 2004-09-09 Tim Coleman <[email protected]>
* AttachmentCollection.cs MailAddressCollection.cs:
                New classes
        * Attachment.cs: Set content string
        * MailMessage.cs: Use new collection classes
        * SmtpClient.cs: Lots of MIME cleanup

svn path=/trunk/mcs/; revision=33690
2004-09-10 04:27:21 +00:00
Tim Coleman fa3d3892ea 2004-09-08 Tim Coleman <[email protected]>
* Attachment.cs: Add SetContentFromFile methods
        * MailMessage.cs: Add MIME-Version header
        * SmtpClient.cs: Add some attachment handling.

svn path=/trunk/mcs/; revision=33603
2004-09-08 23:26:44 +00:00
Tim Coleman 8a963f8739 Tim Coleman <[email protected]>
* Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
        * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
                New class stubs for 2.0

svn path=/trunk/mcs/; revision=33343
2004-09-04 19:49:50 +00:00