How to send an adaptive card to Microsoft teams channel via SMTP. I am trying to pass Json through the string in c# via SMTP and send mail directly to the team's channel
string Message = @"{
'type': 'AdaptiveCard',
'body': [
{
'type': 'Container',
'items': [
{
'type': 'TextBlock',
'text': 'Test',
'color': 'Attention',
'wrap': true
}
],
'bleed': true
}
],
'$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',
'version': '1.0'}";
_emailSender.SendEmailAsync("abct@apac.teams.ms", user.Email, "Title", Message);