简体   繁体   中英

How to add url to email body to open in Google Chrome by default

I am working on a C#/Angular project. Due to some third party controls, some of the website features do not work on IE. There is an email which goes out containing link to a page. When I click the link it is opening by default in IE. Is there a way I can default it to open in Google Chrome? Here is my code and url syntax:

string ProjectURL = String.Format("<a href=\"https://dev.mylink.net/MyApp/#/mycomponent\">Project link</a>");


string EmailBody = "<p>" + ManagerName + " (" + ManagerID + "),</p><p>The request " + ReqNumber + " submitted by " + UserName + ", on " + CreationDate + " is ready for Approval.</p><p>Please visit the following URL to Approve this request:" + ProjectURL + "</p>";

PS The url contains a "#" as well.

自从客户端计算机中定义的默认浏览器以来,我认为没有办法实现。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM