将其设为Web链接

时间:2015-08-28 12:38:54

标签: html .net email hyperlink

我的问题在这里,

"<html><body> " + BodyHeader + " <br/><br/>" + Bodycontent + "<br/><br/>" + gg + "<br/><br/>" + "Please log into TMS in order to review the timesheet. Access TMS at : http://tms.example.com "+  "<br/><br/>" + BodyFooter + "<br/><br/></body></html>";

我正在将DataTable转换为HTML表格以向用户发送电子邮件。我也提到了一些链接。这个链接只是在雅虎邮件中显示为文本,但在gmail和其他邮件系统中,我将其作为链接。我想在雅虎中显示链接。帮我做这个。

1 个答案:

答案 0 :(得分:1)

您应该将网址包装在“<a href='http://tms.example.com'>http://tms.example.com</a> ”标记中,因为某些电子邮件客户端不会自动将网址转换为链接:

 // scope that is entered allot, like 100k times per second
 {
   std::string temp;
   ...
   // magic happens
   ...
 }