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

Send email in powerapps with normal email format

Hello guys,

 

I know how to send an email with attachment by clicking a button in Powerapps. But everything is packed together.

 

Now:HelloXXXX"this is the body""here is the signature"

 

Expected email format :

HelloXXXX,

"this is the body"

"here is the signature"

 

Appreciated for you heeeeeeeeeeeeeelp in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Elliebai ,

Do you want to send email in the format that you want?
If so, you just need to send email body by using html body.

Based on the format that you listed, you just need to use "<br>xxx</br>" in your every row. (represents html tag for line breaking)

Try this formula:

Office365Outlook.SendEmail(to,subject,
"<br>HelloXXXX,</br><br>this is the body</br><br>here is the signature</br>",
{IsHtml:true})

Then the email body will look like this:

622.PNG

 The key point of your issue is about how to use html text in your email body.

I suggest you know more about html tags:

https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Same issue has been solved this post;

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Char-10-and-Char-13/td-p/201334

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-yutliu-msft
Community Support
Community Support

Hi @Elliebai ,

Do you want to send email in the format that you want?
If so, you just need to send email body by using html body.

Based on the format that you listed, you just need to use "<br>xxx</br>" in your every row. (represents html tag for line breaking)

Try this formula:

Office365Outlook.SendEmail(to,subject,
"<br>HelloXXXX,</br><br>this is the body</br><br>here is the signature</br>",
{IsHtml:true})

Then the email body will look like this:

622.PNG

 The key point of your issue is about how to use html text in your email body.

I suggest you know more about html tags:

https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi ,

 

I have tried your solution, but it seems that it doesn't work.

Screenshot (123)_LI.jpg

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,332)