Commit Graph
15 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier adcc59f1eb 2009-08-03 Gonzalo Paniagua Javier <[email protected]>
* Attachment.cs: set the body encoding for multipart attachments.
	Fixes bug #527177.


svn path=/trunk/mcs/; revision=139278
2009-08-03 12:48:11 +00:00
Juraj Skripsky 6084514833 2008-04-03 Juraj Skripsky <[email protected]>
* Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
	Fixes bug #366947.


svn path=/trunk/mcs/; revision=99754
2008-04-03 15:27:00 +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 9985165563 2007-10-23 Atsushi Enomoto <[email protected]>
* Attachment.cs : reverted previous change. NameEncoding is not
	  guessed at set_Name().

	* AttachmentTest.cs : more NameEncoding tests.


svn path=/trunk/mcs/; revision=87958
2007-10-23 04:28:44 +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 3487dff120 2007-10-22 Atsushi Enomoto <[email protected]>
* Attachment.cs : null name is allowed.

	* AttachmentTest.cs : test for null names.


svn path=/trunk/mcs/; revision=87887
2007-10-22 06:23:09 +00:00
Atsushi Eno c477d20a6c 2007-10-19 Atsushi Enomoto <[email protected]>
* 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
2007-10-19 07:25:50 +00:00
Atsushi Eno b7461c8e10 2007-10-17 Atsushi Enomoto <[email protected]>
* AlternateView.cs : dispose linked resources. Remove MonoTODOs.
	* Attachment.cs : check null content string.
	  The string argument in .ctor(Stream,string) is name, not mediaType.
	  Use contentEncoding argument in CreateAttachmentFromString().
	* AttachmentBase.cs : TransferEncoding default is QuotedPrintable.

	* LinkedResourceTest.cs, AttachmentTest.cs, AlternateViewTest.cs:
	  added/enabled couple of attachment tests.


svn path=/trunk/mcs/; revision=87674
2007-10-17 14:30:23 +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 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
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