Closed jaredlt closed 4 years ago
@jaredlt
just use url encode (%0A
), it should work:
@lptn I know it works for Google and Yahoo. But I was asking specifically for Outlook Web as it doesn't appear to work the same.
In the below example https://www.example.com/event-details
should be on a double new line:
@jaredlt This is what they use in their code:
if (params[BODY_QUERYSTRING_KEY]) {
event.Body = {
BodyType: 'HTML',
Value: HtmlSanitizer.sanitizeHtml(params[BODY_QUERYSTRING_KEY]),
};
}
I assume that their HtmlSanitizer has a bug/feature. I just tried to use <br>
HTML tag and it works:
@lptn oh, that's awesome! Didn't even think to try a <br>
:/
Thanks so much for your help :)
Do you know if it's possible to add a multi-line body for Outlook Web?
For Google and Yahoo you simple pass in the newline value
\n
(url encoded:%0A
). But this doesn't seem to work for Outlook Web. I've also tried\r
(url encoded:%0D
) and\r\n
but neither appear to work.