如何配置TFS以使用GMail发送TFS警报?

时间:2023-01-12 23:26:25

Environment: Windows Server 2008, IIS 7.0, TFS 2008

环境:Windows Server 2008,IIS 7.0,TFS 2008

We run Google Apps for email and I'm having a heck of time setting up TFS to send alerts to our Google hosted mail.

我们运行Google Apps for email,我很快就设置TFS来向我们的Google托管邮件发送提醒。

I googled around and found a couple of workarounds however none have worked for me. Any pointers graciously accepted.

我用Google搜索并找到了几个解决方法,但没有一个对我有用。任何指针都慷慨地接受了。

4 个解决方案

#1


Have you tried setting up an SMTP server on the same box as TFS, then configuring it to forward to GMail? That sounds like the easiest solution.

您是否尝试在与TFS相同的框中设置SMTP服务器,然后将其配置为转发到GMail?这听起来像是最简单的解决方案。

Alternatively, you could write a SOAP endpoint that handled TFS events with as many customizations as you want. This is a little more work but a lot more flexible.

或者,您可以编写一个SOAP端点,根据需要使用尽可能多的自定义来处理TFS事件。这是一项更多的工作,但更灵活。

#2


I just ran through this problem in TFS-2013.

我刚刚在TFS-2013中遇到了这个问题。

I think the root of the problem is that Apps must sign into Google Securely. For secondary apps, that means oauth. For those that can't, Google needs "Application Specific Passwords". Since it can't really trust the email application, it requires you to generate a random password for that specific account.

我认为问题的根源在于Apps必须登录Google Securely。对于辅助应用程序,这意味着oauth。对于那些不能的人,Google需要“特定于应用程序的密码”。由于它无法真正信任电子邮件应用程序,因此需要您为该特定帐户生成随机密码。

The solution for me was:

我的解决方案是:

Enable Email Alerts
    SMTP Server: smtp.gmail.com
    port: 587
    SSL Required: Yes
    send from: email@mydomain.com

authentication:
    username: mygmail@gmail.com
    password: RANDOM APP PASSWORD

#3


Can't you just configure TFS to send outgoing email through the Gmail servers?

你不能只配置TFS通过Gmail服务器发送外发邮件吗?

http://msdn.microsoft.com/en-us/library/ms400808(VS.80).aspx

Does that not do what you need, or am I missing part of the question? We're using a local SMTP server to send email out, but I don't see a reason why you couldn't use a remote one instead.

那不是你需要的,还是我错过了部分问题?我们正在使用本地SMTP服务器发送电子邮件,但我没有看到您无法使用远程服务器的原因。

#4


I verified that WernerCD AppPassword solution works.

我验证了WernerCD AppPassword解决方案的有效性。

#1


Have you tried setting up an SMTP server on the same box as TFS, then configuring it to forward to GMail? That sounds like the easiest solution.

您是否尝试在与TFS相同的框中设置SMTP服务器,然后将其配置为转发到GMail?这听起来像是最简单的解决方案。

Alternatively, you could write a SOAP endpoint that handled TFS events with as many customizations as you want. This is a little more work but a lot more flexible.

或者,您可以编写一个SOAP端点,根据需要使用尽可能多的自定义来处理TFS事件。这是一项更多的工作,但更灵活。

#2


I just ran through this problem in TFS-2013.

我刚刚在TFS-2013中遇到了这个问题。

I think the root of the problem is that Apps must sign into Google Securely. For secondary apps, that means oauth. For those that can't, Google needs "Application Specific Passwords". Since it can't really trust the email application, it requires you to generate a random password for that specific account.

我认为问题的根源在于Apps必须登录Google Securely。对于辅助应用程序,这意味着oauth。对于那些不能的人,Google需要“特定于应用程序的密码”。由于它无法真正信任电子邮件应用程序,因此需要您为该特定帐户生成随机密码。

The solution for me was:

我的解决方案是:

Enable Email Alerts
    SMTP Server: smtp.gmail.com
    port: 587
    SSL Required: Yes
    send from: email@mydomain.com

authentication:
    username: mygmail@gmail.com
    password: RANDOM APP PASSWORD

#3


Can't you just configure TFS to send outgoing email through the Gmail servers?

你不能只配置TFS通过Gmail服务器发送外发邮件吗?

http://msdn.microsoft.com/en-us/library/ms400808(VS.80).aspx

Does that not do what you need, or am I missing part of the question? We're using a local SMTP server to send email out, but I don't see a reason why you couldn't use a remote one instead.

那不是你需要的,还是我错过了部分问题?我们正在使用本地SMTP服务器发送电子邮件,但我没有看到您无法使用远程服务器的原因。

#4


I verified that WernerCD AppPassword solution works.

我验证了WernerCD AppPassword解决方案的有效性。