【问题标题】:Sending email using Gmail on Windows server 2008在 Windows server 2008 上使用 Gmail 发送电子邮件
【发布时间】:2011-12-01 07:05:36
【问题描述】:

我编写了一个在我的 windows server 2008 上运行的小型 c# 控制台(端口 587,启用 ssl,smtp.gmail.com)。它无法使用 Gmail 发送电子邮件。结果是“发送电子邮件失败”。但它可以在另一个 windows server 2008 和我的笔记本电脑上运行。那么我的服务器上缺少什么配置?

我刚刚检查过:

telnet smtp.gmail.com 587
Connecting To smtp.gmail.com...Could not open connection to the host, on port 587: Connect failed

如何配置以在我的服务器上传递它?

【问题讨论】:

  • 请显示您用于发送电子邮件的代码。

标签: gmail


【解决方案1】:

最后,我找到了解决方案。只需更改端口 587 -> 25 即可。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-24
    • 2013-01-21
    • 1970-01-01
    • 2012-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多