Has anyone created a hyperlink within the Send SMTP Mail Message? If so, how? Everything I have tried has failed. Can someone point me to an example?
Hey @eric.brenner
Please use the below in the body prop,
<a href='https://www.uipath.com/'> UiPath </a>
Donât forget to enable the prop BodyAsHTML
Thanks
#nK
Doesnât appear to work. I get this message.
Still doesnât work. States something about implicit conversions.
often, when we do see this message some editors were confused broken. Please share some screenshots where this expression was used and on which activity
also give a try on:
"this is my test link: <a href=""https://www.uipath.com/""> UiPath </a> end of text"
Looking at the error Send SMTP interprets your body input as xml instead of a string.
Try assinging the lik as stated in the above formats to astring variable first, and pass the variable as the body in your SMTP activity. This way you force it to be interpreted as a string, and the stric rules are obeyed.
Just use single quotes around the HTML properties.
"this is my test link: <a href='https://www.uipath.com/'> UiPath </a> end of text"
Itâs a string. You have to have the entire string inside double quotes. The HTML propertiesâ values go in single quotes.
It doesnât have to be in double quotes. HTML doesnât care.
hint was attribute and not property
Itâs the same thing.
href=âhttp://âŚâ or href=âhttp://â are both correct. HTML doesnât care.
was not mentioning this and was also not referring it.
as mentioned above (confused editor) and confirming to @Jeroen_van_Loon we do see such issues when editotr / expression box is get confused and interpretates a string as an xml element value.
In the majority of cases we fixed quickly by removing and remodelling the activity
Itâs not interpreting the string as an xml element value. He didnât have the quotes done right. I suspect he has other text in the Body property but didnât show us all of it.
@postwick Here is what I have. Right now, itâs just a Test area for Proof of Concept.
WIth that said, the message that @ppr had worked, but, Iâll admit, I want to do it right for other use-cases.
Having two double quotes is called escaping. It tells the interpreter that the double quote is a literal, not something to process. It makes it so the double quote doesnât close the string.
You could just replace ââ with â and itâll work fine, because â within " and " doesnât close the string.
@postwick Thank you for your assistance with this. It is much appreciated!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.