Beispiel #1
0
 /// <summary>
 /// Create an character-encoded instance of an email address object.
 /// </summary>
 /// <param name="email">The address portion of the email</param>
 /// <param name="name">The name portion of the email.</param>
 /// <param name="charset">The character set to encode the name portion of the email address.</param>
 /// <param name="encodingtype">The encoding type to use to encode the name portion of the mail address.</param>
 public EmailAddress(String email, String name, Encoding.EncodingType encodingtype, System.Text.Encoding charset)
 {
     if (email != null)
     {
         email = email.Trim();
     }
     this._email        = email;
     this._name         = name;
     this._charset      = charset;
     this._encodingtype = encodingtype;
 }
Beispiel #2
0
		/// <summary>
		/// Create an character-encoded instance of an email address object.
		/// </summary>
		/// <param name="email">The address portion of the email</param>
		/// <param name="name">The name portion of the email.</param>
		/// <param name="charset">The character set to encode the name portion of the email address.</param>
		/// <param name="encodingtype">The encoding type to use to encode the name portion of the mail address.</param>
		public EmailAddress(String email, String name, Encoding.EncodingType encodingtype, System.Text.Encoding charset)
		{

			if (email!=null) 
			{
				email=email.Trim();
			}
			this._email=email;
			this._name=name;
			this._charset=charset;
			this._encodingtype=encodingtype;

		}