/// <summary>
 /// Initializes a new instance of the <see cref="Emailer" /> class.
 /// </summary>
 /// <param name="SmtpServer">The SMTP server.</param>
 /// <param name="title">The title.</param>
 /// <param name="recipientAddress">The recipient address.</param>
 /// <param name="recipientName">Name of the recipient.</param>
 /// <param name="destinataryList">The destinatary list.</param>
 /// <param name="svrType">Kind of the smtp server.</param>
 public Emailer(string SmtpServer, string title, string recipientAddress, string recipientName, List <EmailRecepient> destinataryList,
                SmtpServerType svrType = SmtpServerType.Normal)
     : this(SmtpServer, title, svrType)
 {
     m_mailMessage.From = new MailAddress(recipientAddress, recipientName);
     AddTo(destinataryList);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="Emailer" /> class.
        /// </summary>
        /// <param name="SmtpServer">The SMTP server.</param>
        /// <param name="svrType">Kind of the smtp server.</param>
        public Emailer(string SmtpServer, SmtpServerType svrType) : this()
        {
            switch (svrType)
            {
            case SmtpServerType.SSL:
                m_clienteSmtp           = new SmtpClient(SmtpServer, 465);
                m_clienteSmtp.EnableSsl = true;
                break;

            case SmtpServerType.TSL:
                m_clienteSmtp = new SmtpClient(SmtpServer, 587);
                break;

            case SmtpServerType.TSLSecure:
            case SmtpServerType.AWS:
            case SmtpServerType.Gmail:
                m_clienteSmtp           = new SmtpClient(SmtpServer, 587);
                m_clienteSmtp.EnableSsl = true;
                break;

            case SmtpServerType.Normal:
            default:
                m_clienteSmtp = new SmtpClient(SmtpServer, 25);
                break;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="Emailer" /> class.
 /// </summary>
 /// <param name="SmtpServer">The SMTP server.</param>
 /// <param name="title">The title.</param>
 /// <param name="svrType">Kind of the smtp server.</param>
 public Emailer(string SmtpServer, string title, SmtpServerType svrType = SmtpServerType.Normal) : this(SmtpServer, svrType)
 {
     m_mailMessage.Subject = title;
 }