代码之家  ›  专栏  ›  技术社区  ›  Ayush

此错误是因为Gmail被阻止吗?

  •  0
  • Ayush  · 技术社区  · 15 年前

    我编写了一个简单的应用程序,通过Gmail SMTP服务器发送电子邮件。但是,它在运行时返回一个异常。 在我的工作场所,Gmail被阻止(无法访问gmail.com)。是因为这个错误吗?

        System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebExceptio
        n: Unable to connect to the remote server ---> System.Net.Sockets.SocketExceptio
        n: A connection attempt failed because the connected party did not properly resp
        ond after a period of time, or established connection failed because connected h
        ost has failed to respond 74.125.113.109:587
    
    5 回复  |  直到 15 年前
        1
  •  1
  •   Darin Dimitrov    15 年前

    是的,它看起来和那个有关。请求可能被防火墙阻止。

        2
  •  1
  •   Ta01    15 年前

    它们很可能会阻塞587港的出境交通。

        3
  •  1
  •   KevinDTimm    15 年前

    答案可能是肯定的。当你试图访问Gmail服务器时,它很可能已经关闭,但很明显,因为你被阻止了,你将无法连接。

        4
  •  0
  •   adamk    15 年前

    不,这是因为网络管理员在公司防火墙中阻止了此IP或端口。

        5
  •  0
  •   Wyatt Anderson    15 年前

    是的,出现异常是因为连接失败,但不一定是因为它被阻塞了。我甚至无法连接到该主机:

    > telnet 74.125.113.109 587
    Trying 74.125.113.109...
    telnet: connect to address 74.125.113.109: Connection refused
    

    编辑:第二遍,我 可以 从另一台计算机连接到该主机。可能还存在其他连接问题。

    推荐文章