cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User II
Super User II

@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

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

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,454)