【问题标题】:Where do you set up email settings in teamcity?您在 teamcity 中的哪里设置电子邮件设置?
【发布时间】:2010-10-19 10:32:59
【问题描述】:

我是 teamcity 的新手,所以请多多包涵

我设置了一个电子邮件通知器,以便在构建失败时通知我,但 TeamCity 报告以下错误:

无法通过以下方式发送电子邮件通知 SMTP 服务器邮件,由于错误: 未知的 SMTP 主机:邮件;嵌套的 例外是: java.net.UnknownHostException:邮件

在我的一生中,我找不到配置邮件服务器设置的位置。我什至不希望它使用 SMTP 服务器,但我在任何地方都看不到任何选项。

【问题讨论】:

    标签: teamcity


    【解决方案1】:

    Sumeru 的回答 (https://stackoverflow.com/a/825701/86627) 描述了您需要设置的邮件帐户,以便 TeamCity 能够发送电子邮件通知。实际通知是基于每个用户发送的。每个用户都可以定义他们希望接收的通知。在 teamCity Professional 7x 中,您可以执行以下操作: 用户名/我的设置和工具/观看的构建和通知/电子邮件通知程序

    【讨论】:

      【解决方案2】:
      Option                 Description 
      ------                 ----------
      SMTP host              Specify the SMTP host name.
      SMTP port              Specify the SMTP port number.
      Send messages from     Specify the email address, from which notification messages will be sent to the user.
      SMTP login             Specify the SMTP login name, if any.
      SMTP password          Specify the SMTP password.
      Use TLS (SSL)          Select this option to secure your SMTP connection with TLS.
                             (This feature is only available in TeamCity 3.1+)
      Test connection        Click this button to establish a connection with the specified SMTP host.
      Save                   Click this button to save changes and close the page.
      

      来源:http://www.jetbrains.net/confluence/display/TCD3/Email+and+Jabber+Notifier+Settings

      【讨论】:

      • 啊哈!我可以让它不使用电子邮件服务器吗?
      • 如果您希望它在构建失败时向您发送电子邮件,那么可能没有什么好办法来解决这个问题。
      • 伙计,为了我自己的机器上运行的服务器和我自己的利益,我付出了很多努力。
      • 如果 smtp 在本地 127.0.0.1 运行,请将其设置为您的环回地址
      • 我们避免使用作为 Gmail / GoogleApps 一部分提供的 SMTP 服务为 TeamCity 设置我们自己的电子邮件服务器。见activecollab.com/forums/topic/3552
      【解决方案3】:

      您可以在管理 - 服务器配置 - 电子邮件通知程序下配置您的电子邮件设置..

      【讨论】:

        猜你喜欢
        • 2013-02-13
        • 1970-01-01
        • 1970-01-01
        • 2022-06-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-11-23
        • 1970-01-01
        相关资源
        最近更新 更多