/// <summary>
 /// テスト送信
 /// </summary>
 public void SendTest()
 {
     this.Validate();
     if (!this.HasErrors)
     {
         MailSender ms = new MailSender()
         {
             Host = this.SendServerHost,
             Port = this.SendServerPort,
             UserName = this.AuthUserName,
             Password = this.AuthPassword,
             EnableSsl = this.AuthIsEnableSsl
         };
         ms.Send(
             this.SenderMailAddress,
             this.SenderDisplayName,
             this.NotifierMailAddress,
             this.NotifierDisplayName,
             Resources.SendTest_Subject,
             Resources.SendTest_Body
         );
     }
 }
Beispiel #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public Plugin()
 {
     this.vm = new ToolViewModel();
     this.mailSender = new MailSender();
 }