cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

ShoutOuts Powerapp sending Email as HTML code instead of the email.

Using the the pre-written template, there is now a glitch in my Shoutouts app. The email was sending properly, but is now only sending as the written out html code. For some reason it's not reading it as code, but rather sending it as text. 

 

Has anyone else had similar problems?

3 REPLIES 3
Highlighted
Community Champion
Community Champion

Re: ShoutOuts Powerapp sending Email as HTML code instead of the email.

@Jay_Matthews 

Can you share some code, specifically the email part? It maybe that the app is using older .SendEmail code which is causing the error?

Highlighted
Regular Visitor

Re: ShoutOuts Powerapp sending Email as HTML code instead of the email.

If(IsBlank(UploadedImage1.Image),
Office365.SendEmail(_emailRecipients, "Shoutout!", LookUp(Templates, Template="Email").Value, {Importance: "Normal"}),
Office365.SendEmail(_emailRecipients, "Shoutout!", LookUp(Templates, Template="Email").Value,
{
Attachments:
Table(
{
Name: "ShoutoutAttachment.jpg",
ContentBytes: UploadedImage1.Image,
'@odata.type': ""
}
),
Importance: "Normal"
}
)
);
Set(_sendShoutout, false);

 

It's this one I think 

Highlighted
Community Champion
Community Champion

Re: ShoutOuts Powerapp sending Email as HTML code instead of the email.

@Jay_Matthews 

Try changing Office365.SendEmail(... to Office365.SendEmailV2(..., that might just fix it. If you get any errors in the code after changing you may need to google the exact cause. I've changed all of my email code to V2 because they stopped working.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,613)