0 votes
by (190 points)

        MailMessage message = new MailMessage();

        message.From = "xxx@gmx.net";
        message.To = "123@gmail.com";
        message.Subject = "This is a test message";
        message.BodyText = "Hello, Joe!";
        message.BodyHtml = "Hello, <b>Joe</b>!";

        Smtp smtp = new Smtp();

        smtp.Proxy.ProxyType = ProxyType.HttpConnect;
        smtp.Proxy.Host = "myproxy";

        smtp.Proxy.Port = 80;
        smtp.Proxy.UserName = "user";
        smtp.Proxy.Password = "pass";


        smtp.Connect("mail.gmx.net", SslMode.Explicit);
        smtp.Login("xxx@gmx.net", "password");


        smtp.Send(message);

by (150k points)
This looks like the proxy is unreachable. However, to make sure, please create a log using Smtp object's LogWriter property (as described at https://rebex.net/kb/logging/) and either post it here or mail it to support@rebex.net. This should make it possible to tell what is going on.

1 Answer

0 votes
by (190 points)

by (150k points)
Thanks for letting us know, and sorry for inconvenience!
...