public void SendMailWithAttachmentTest()
        {
            var server     = "smtp.yandex.ru";
            var port       = 25;
            var ssl        = true;
            var login      = "******";
            var password   = "******";
            var from       = new MailAddress("*****@*****.**");
            var to         = new MailAddress("*****@*****.**");
            var attachPath = @"D:\v\test.txt";
            var connection = DeliveryManager.Singleton(login, password, server, port, ssl);

            connection.SendMailWithAttachment(from, to, "test1",
                                              "test2", attachPath);
        }
        public void SendMailTest()
        {
            var server     = "smtp.yandex.ru";
            var port       = 25;
            var ssl        = true;
            var login      = "******";
            var password   = "******";
            var from       = new MailAddress("*****@*****.**");
            var to         = new MailAddress("*****@*****.**");
            var connection = DeliveryManager.Singleton(login, password, server, port, ssl);

            connection.SendMail(from, to, "This is testing message for our application",
                                "This is testing message for our application. If you get it, feel free to delete it. We must be doing something wrong. We are sorry for bothering you." +
                                " Have a nice day!");
        }