Exemplo n.º 1
0
        public static void SendEmail(General.Utilities.Mail.MailTools.MailServerTypes enuUseServerType, string FromEmail, string ToEmail, byte[] MIMEMessage) //bool SSL,
        {
            SmtpClient      objServer     = General.Utilities.Mail.MailTools.GetMailServer(enuUseServerType);
            SMTPSendRawMIME objMailClient = new SMTPSendRawMIME();

            objMailClient.Send(objServer, FromEmail, ToEmail, MIMEMessage);
        }
Exemplo n.º 2
0
        //The following methods are KNOWN to be flawed... they work only with some SMTP Servers... not many....
        //On the other hand, they run very fast... so they are worth using when possible like with SendGrid
        #region Send Raw Mime
        #region Static Send Methods
        public static void SendEmail(SmtpClient Server, string FromEmail, string ToEmail, byte[] MIMEMessage) //bool SSL,
        {
            SMTPSendRawMIME objMailClient = new SMTPSendRawMIME();

            objMailClient.Send(Server, FromEmail, ToEmail, MIMEMessage);
        }