just set
emailMessage.IsBodyHtml = true;
and make the body valid html
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
VS 2022 17.8.4
c# ver 10
Outolok Ver You have Microsoft Outlook Version 1.2024.103.100 (Production). Client Version is 20231215008.09
I am trying to set a hyperlink using EmailMessage with Outlook being the default mail client
private async Task ComposeEmail()
{
string body = "DownLoad Reports : <a href=" + ReportsDownloadLink + ">click here</a>";
EmailMessage emailMessage = new EmailMessage();
emailMessage.Body = body;
emailMessage.Subject = "Reports for " + SFiles.PtRptList.PtName;
await EmailManager.ShowComposeNewEmailAsync(emailMessage);
}
I want to have a hyperlink
Download Reports : <a href=https://muatestone.blob.core.windows.net/wizsot/zip%5CPeter Paulzo Report%28s%29.zip?sv=2023-11-03&st=2024-01-09T21%3A23%3A26Z&se=2024-01-11T09%3A23%3A26Z&sr=b&sp=r&sig=Plp5plCUYWwy1YqGmmekKR3woktF1LB7nFRbEw44%2FD8%3D>click here</a>
This is what I am looking to achieve
Download Reports: [Click here](https://muatestone.blob.core.windows.net/wizsot/zip%5CPeter%20Paulzo%20Report%28s%29.zip?sv=2023-11-03&st=2024-01-09T21%3A23%3A26Z&se=2024-01-11T09%3A23%3A26Z&sr=b&sp=r&sig=Plp5plCUYWwy1YqGmmekKR3woktF1LB7nFRbEw44%2FD8%3D"https://muatestone.blob.core.windows.net/wizsot/zip%5CPeter Paulzo Report%28s%29.zip?sv=2023-11-03&st=2024-01-09T21%3A23%3A26Z&se=2024-01-11T09%3A23%3A26Z&sr=b&sp=r&sig=Plp5plCUYWwy1YqGmmekKR3woktF1LB7nFRbEw44%2FD8%3D")
I understand that EmailMessage.Body only does plain text. I am looking to see if there is a work around
thanks
Paul
just set
emailMessage.IsBodyHtml = true;
and make the body valid html