public SentStatus Send(string to, string subject, string message, string[] cc, string[] bcc, byte[] attachment, string attachmentname, string replyto) { SentStatus status = new SentStatus(); try { Console.WriteLine("Inside Mail Sending to " + to); if (Primary != null) { status = Primary.Send(to, subject, message, cc, bcc, attachment, attachmentname, replyto); Console.WriteLine("Mail Send With Primary :"); } else if (this.Capacity != 0) { Console.WriteLine("Mail Send using First Element"); status = this[0].Send(to, subject, message, cc, bcc, attachment, attachmentname, replyto); } else { Console.WriteLine("Email Connection Empty!"); } } catch { try { if (FallBack != null) { status = FallBack.Send(to, subject, message, cc, bcc, attachment, attachmentname, replyto); Console.WriteLine("Mail Send With FallBack : "); } } catch (Exception ex) { Console.WriteLine("Mail Sending Failed: " + ex.StackTrace); } } return(status); }