Example #1
0
 void Helper_MailServerResponseReceived(object sender, MailServerEventArgs e)
 {
     if (trys < 2)
      {
         switch (e.response)
         {
             case "PHP Confirmed": serverType = ServerType.PHP; break;
             case "ASP Confirmed": serverType = ServerType.ASP; break;
             default:
                 if (serverType == ServerType.ASP) serverType = ServerType.PHP;
                 else serverType = ServerType.ASP;
                 GetServerType();
                 trys++;
             break;
         }
     }
     else serverType = ServerType.NON;
 }
 void helpMe_MailServerErrorReceived(object sender, MailServerEventArgs e)
 {
     successMessage.Text = "Mail transport error";
 }
Example #3
0
 void Helper_MailServerErrorReceived(object sender, MailServerEventArgs e)
 {
     if (trys > 2)
         {
             NoMailTransportDetermined.Invoke(this, new EventArgs());
         }
         else
         {
             if (serverType == ServerType.ASP) serverType = ServerType.PHP;
             else serverType = ServerType.ASP;
             GetServerType();
             trys++;
         }
 }