예제 #1
0
 /// <summary>
 /// Creates an Email object
 /// </summary>
 public Email()
 {
     _id                = 0;
     _to                = "";
     _from              = "";
     _replyTo           = "";
     _cc                = "";
     _bcc               = "";
     _subject           = "";
     _body              = "";
     _maxLength         = 0;
     _userId            = null;
     _password          = null;
     _serverPort        = SmtpNative.SmtpPortConfigSetting;
     _serverName        = SmtpNative.SmtpServerConfigSetting;
     _connectionTimeout = 60;
     _format            = EmailFormat.Text;
     _priority          = EmailPriority.Normal;
     _toBeSentAt        = DateTime.Now;
     _attachments       = new Attachments();
 }
예제 #2
0
 /// <summary>
 /// Removes the given attachment object from this collection
 /// </summary>
 /// <param name="data"></param>
 public void Remove(Attachments data)
 {
     List.Remove(data);
 }