Exemplo n.º 1
0
 /// SMTPコマンドの種類に基づいて状態を変化させます。
 /// <summary>
 /// SMTPコマンドの種類に基づいて状態を変化させます。
 /// </summary>
 /// <param name="command"></param>
 private void SetSmtpCommandState(SmtpCommand command)
 {
     if (command is MailCommand)
     {
         this._State = SmtpConnectionState.MailFromCommandExecuting;
     }
     else if (command is RcptCommand)
     {
         this._State = SmtpConnectionState.RcptToCommandExecuting;
     }
     else if (command is DataCommand)
     {
         this._State = SmtpConnectionState.DataCommandExecuting;
     }
 }
Exemplo n.º 2
0
 /// 同期でSMTPメールサーバーへコマンドを送信し、コマンドの種類によってはレスポンスデータを受信して返します。
 /// <summary>
 /// 同期でSMTPメールサーバーへコマンドを送信し、コマンドの種類によってはレスポンスデータを受信して返します。
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public SmtpCommandResult Execute(SmtpCommand command)
 {
     return(this.Execute(command.GetCommandString()));
 }
Exemplo n.º 3
0
 /// SMTPコマンドの種類に基づいて状態を変化させます。
 /// <summary>
 /// SMTPコマンドの種類に基づいて状態を変化させます。
 /// </summary>
 /// <param name="command"></param>
 private void SetSmtpCommandState(SmtpCommand command)
 {
     if (command is MailCommand)
     {
         this._State = SmtpConnectionState.MailFromCommandExecuting;
     }
     else if (command is RcptCommand)
     {
         this._State = SmtpConnectionState.RcptToCommandExecuting;
     }
     else if (command is DataCommand)
     {
         this._State = SmtpConnectionState.DataCommandExecuting;
     }
 }
Exemplo n.º 4
0
 /// 同期でSMTPメールサーバーへコマンドを送信し、コマンドの種類によってはレスポンスデータを受信して返します。
 /// <summary>
 /// 同期でSMTPメールサーバーへコマンドを送信し、コマンドの種類によってはレスポンスデータを受信して返します。
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public SmtpCommandResult Execute(SmtpCommand command)
 {
     return this.Execute(command.GetCommandString());
 }