示例#1
0
 /// <summary>Resets all of the MailMessage properties</summary>
 /// <example>
 /// <code>
 ///     MailMessage msg = new MailMessage("*****@*****.**", "*****@*****.**");
 ///		msg.Reset();
 /// </code>
 /// </example>
 public void Reset( )
 {
     mFrom    = null;
     mReplyTo = null;
     mToRecipients.Clear( );
     mCcRecipients.Clear( );
     mBccRecipients.Clear( );
     customHeaders.Clear();
     attachments.Clear();
     subject       = null;
     body          = null;
     htmlBody      = null;
     priority      = null;
     mixedBoundary = null;
     altBoundary   = null;
     charset       = null;
     notification  = false;
 }