如何更改电子邮件模板 [英] How can I change the email template

查看:119
本文介绍了如何更改电子邮件模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过使用"发送电子邮件"发送了我发送的电子邮件中的链接。是不正确的。例如,"blocked :: http://127.0.0.1/Wi.aspx?server = http:// machinename /& amp; id = 267"。但是,当我点击此链接时,它将重定向到index.aspx页面。


我正在使用TSWA 2005,我可以对链接进行一些更改吗?


谢谢。

解决方案

您好,



  1. 在TFS应用层上打开文件夹:
    %ProgramFiles%\ Microsoft Visual Studio 2005 Team Foundation Server \ Web Services\Services\v1.0 \Transforms

  2. 创建文件的备份 WorkItemChangedEvent.xsl ,我们将在下一步编辑。

  3. 替换文本,如果您已经将此部分跳转到3.5:

    < xsl:value-of select ="广告显示" />

    with:

3.5。 < xsl:value-of select =" concat(substring-before(DisplayUrl,':8080 / WorkItemTracking / WorkItem.aspx?
artifactMoniker ='),': 8090 /wi.aspx?id =",串 - 后(显示网址, 'artifactMoniker ='))" />


粗体打印的8090是您安装TSWA的端口。

保存文件后就完成了。


I found the link in email I sent by using "Send as Email" is incorrect. Such as, "blocked::http://127.0.0.1/Wi.aspx?server=http://machinename/&id=267". But when I click this link, it will redirect to the index.aspx page.

I am using TSWA 2005, can I do some changes on the link?

Thanks.

解决方案

Hello,

  1. On the TFS app tier open the folder:
    %ProgramFiles%\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\v1.0\Transforms
  2. Create a backup of the file WorkItemChangedEvent.xsl, which we will be editing in the next step.
  3. Replace the text, if you already did this part jump to 3.5:

    <xsl:value-of select="DisplayUrl" />

    with:

   3.5.   <xsl:value-of select="concat(substring-before(DisplayUrl,':8080/WorkItemTracking/WorkItem.aspx?
        artifactMoniker='),':8090/wi.aspx?id=',substring-after(DisplayUrl,'artifactMoniker='))" />


            The bold printed 8090 is the port where you installed TSWA at.

        Save the file and you are done.


这篇关于如何更改电子邮件模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆