dodu0815
dodu0815

Reputation: 23

C# VSTO appointmentItem "HTMLBody" hyperlink

I need a function to create a hyperlink in a appointmentItem.Body. For mailItem it works fine. I need a similiar one for the appointmentItem. I didn't found any usefull hints.

if (ThisAddIn.mailItem != null) { 

                ThisAddIn.mailItem.HTMLBody += "<a href='"+link+"'>Click here to call.</a>";

                }else if(ThisAddIn.appointmentItem != null){

                    ThisAddIn.appointmentItem.Body += link;

                }

Thanks for your help

Upvotes: 0

Views: 1021

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49397

The Body property contains only the plain text.

You need to use the RTFBody property instead. See What is the RTF syntax for a hyperlink for the RTF markup.

Upvotes: 1

Related Questions