Parallels Webmail 问题

Parallels Webmail issue

我知道我的问题可能有些奇怪,但我想从 asp.net 网络项目向我的注册客户发送电子邮件。我可以很容易地使用 gmail 做到这一点。但我想从 Parallels Webmail 发送它。 我的 C# 代码是这样的:

using (MailMessage mm = new MailMessage("info@mydomain.com", email))
            {
                mm.Subject = "Account Activation";
                string body = "Hello " + name.Trim();
                mm.Body = body;
                mm.IsBodyHtml = true;
                SmtpClient smtp = new SmtpClient();
                smtp.Host = "mydomain.com";
                smtp.EnableSsl = true;
                NetworkCredential NetworkCred = new NetworkCredential("info@mydomain.com", "mypassword");
                smtp.UseDefaultCredentials = true;
                smtp.Credentials = NetworkCred;
                smtp.Port = 26;//587 is also tested
                smtp.Send(mm);
        }

但我得到错误“A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.63.251.194:26

我确定我无法发送正确的 smtp.host 格式。
这仅适用于 paralles 上的电子邮件客户端
报错信息的截图也在这里:

不胜感激。

使用25端口,使smtp.EnableSsl = true;

using (MailMessage mm = new MailMessage("info@mydomain.com", email))
{
    mm.Subject = "Account Activation";
    string body = "Hello " + name.Trim();
    mm.Body = body;
    mm.IsBodyHtml = true;
    SmtpClient smtp = new SmtpClient();
    smtp.EnableSsl = false;
    smtp.Host = "mydomain.com";
    NetworkCredential NetworkCred = new NetworkCredential("info@mydomain.com", "mypassword");
    smtp.UseDefaultCredentials = true;
    smtp.Credentials = NetworkCred;
    smtp.Port = 25;
    smtp.Send(mm);
}