vs2010创建html文件,在VS2010中使用T4创建HTML电子邮件正文

这是一个用于构建邮件关闭部分的函数,根据不同的模式(Q模式)生成不同的结束语。如果模式为'Q',则会包含电话联系和提供票务详情的要求。否则,会提示在查询报价时联系相关人员。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

private string BuildClosingContents(string legalBrand, string legalPhone,

string legalURL, string transText, string instructText, MyMail.Setting emailConfig)

{

StringBuilder sbHTML = new StringBuilder();

sbHTML.AppendLine(\"

\");

if (emailConfig.Mode == \"Q\")

{

sbHTML.AppendLine(\"Please call me on \" + legalPhone + \" and we will arrange \");

sbHTML.AppendLine(\"everything for you. Please have your ticket details to hand \");

sbHTML.AppendLine(\"and your \" + instructText + \" will be required. In the meantime if you have any questions \");

sbHTML.AppendLine(\"please do not hesitate to call me.\");

sbHTML.AppendLine(\"
\");

}

else

{

sbHTML.AppendLine(\"If you have any queries relating to your quote \" + transText + \" please do not hesitate \");

sbHTML.AppendLine(\"to contact your conveyancer or me.\");

sbHTML.AppendLine(\"
\");

}

// Signature + branding

sbHTML.AppendLine(\"Yours sincerely\");

sbHTML.AppendLine(\"
\");

sbHTML.AppendLine(\"\\\"\\\"
\");

//sbHTML.AppendLine(legalBrand + \" Services
\");

sbHTML.AppendLine(\"

\");

// Return the closing content

return sbHTML.ToString();

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值