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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (13,272)