我是 teamcity 的新手,所以请多多包涵
我设置了一个电子邮件通知程序,以在构建失败时通知我,但 TeamCity 报告以下错误:
无法通过 SMTP 服务器邮件发送电子邮件通知,原因是错误:未知 SMTP 主机:邮件;嵌套异常是:java.net.UnknownHostException:邮件
对于我的生活,我找不到在哪里配置邮件服务器设置。我什至不希望它使用 SMTP 服务器,但我在任何地方都看不到任何选项。
我是 teamcity 的新手,所以请多多包涵
我设置了一个电子邮件通知程序,以在构建失败时通知我,但 TeamCity 报告以下错误:
无法通过 SMTP 服务器邮件发送电子邮件通知,原因是错误:未知 SMTP 主机:邮件;嵌套异常是:java.net.UnknownHostException:邮件
对于我的生活,我找不到在哪里配置邮件服务器设置。我什至不希望它使用 SMTP 服务器,但我在任何地方都看不到任何选项。
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
您可以在管理 - 服务器配置 - 电子邮件通知程序下配置您的电子邮件设置。
Sumeru 的回答 ( https://stackoverflow.com/a/825701/86627 ) 描述了您需要设置的邮件帐户,以便 TeamCity 能够发送电子邮件通知。实际通知是基于每个用户发送的。每个用户都可以定义他们希望接收的通知。在 teamCity Professional 7x 中,您可以在以下位置执行此操作:用户名/我的设置和工具/观看的构建和通知/电子邮件通知程序