I'm experiencing issue with Hero Card with Mailto action on MS Teams (button with openUrl).
MS Teams seems to not support mailto with subject or whatever you put after the destination email.
I've a card with a button in it which got an openUrl action "mailto:[email protected]". This works fine but then I wanted to add a subject to the mailto as "mailto:[email protected]?subject=Bot Email" and now the button is unresponsive. On other platform as Skype, it's working fine.
Is there a way to bypass this issue for MS Teams ?
Open Email App with fields filled according to the mailto link
Button is unresponsive when a subject "?subject=" or anything else (body,..) is added to the mailto.
Thanks !
@MBbrainsonic Looks like you found a Teams-specific bug. Thanks for reporting!
I have forwarded the issue to the MS Teams team for investigation.
When sending a herocard through facebook with a "mailto" or "tel" url, facebook didnt't render it and complained about it (could see that through the botframework portal issues),
So as a workaround I'm using the goo.gl or tinyurl API to redirect to those urls.
Hope it helps as a workaround until there's a fix for MS Teams
@xjose97x Yes I was using this method but it's really annoying because it's opening the web browser. But thx btw ;)
I tried this myself on MS Teams and it worked fine. Can you send a specific code sample?
Here's what I tried:
buttons.push(builder.CardAction.openUrl(session, "mailto:[email protected]?subject=bot email", "Email Bill!"));
What Teams client are you testing this on? E.g. Windows, Mac, iOS, Android?
@nwhitmont @billbliss I found out what's the real issue on MS Teams.
I've tried your example @billbliss and it's working fine. So I've investigated what was the problem of my mailto. For my purpose, I'm putting "tags" inside subject as
At this point I've made many tests on subject and body and the final result is that MS Teams doesn't support '[' or ']' characters inside a mailto link. I've also tested '{' and '}' characters and same result, the button is unresponsive.
I'm using Teams on Windows 10 Pro. MS Teams version 1.0.00.31451 (32 bits) . Last Update 12/01/2017.
Oh and thank you for your quick answers to both 馃憤
@MBbrainsonic - This is happening because [ and ] are not encoded. Please encode the URL as follows and it should work fine.
@Wajeed-msft Indeed it works fine ! Curiously Skype supports brackets even if they're not encoded but MS Teams not. Thanks to all 馃憤
Most helpful comment
When sending a herocard through facebook with a "mailto" or "tel" url, facebook didnt't render it and complained about it (could see that through the botframework portal issues),
So as a workaround I'm using the goo.gl or tinyurl API to redirect to those urls.
Hope it helps as a workaround until there's a fix for MS Teams