web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / New line in email body
Power Apps
Unanswered

New line in email body

(1) ShareShare
ReportReport
Posted on by 65
How do I get a new line in an email body as don’t like the long line of information
Categories:
I have the same question (0)
  • Verified answer
    bongobus1 Profile Picture
    65 on at

    solved

  • Community Power Platform Member Profile Picture
    on at

    @bongobus1 How did you solve it?

  • bongobus1 Profile Picture
    65 on at
    Char(10)
  • Community Power Platform Member Profile Picture
    on at

    Thanks for the fast reply! @bongobus1

    Trying Char(10)
    Can you see where I'm going wrong?

     

    Launch("mailto:myemail@email.com
    &subject=Subject Line
    &CC=purchases2@company.com
    &Body=FAO Reservations," & Char(10) & "Please can I booked the following...")

     

     

  • OneThing Profile Picture
    393 on at

    Hi @Anonymous,

     

    I'm not sure how Bongo resolved the issue himself but there are a few ways to do this.

     

    In the most basic way you can Just press Ctrl + Enter when typing out the email, e.g. 

     

     "new" & "
        " & "line"

    Failing that you can add a propper CRLF with :

    Char(13) & Char(10)

     

    If you  are needing something more complex, then you can Generate the email using a hidden HtmlText Box. If you are comfortable with HTML. You can then add a <br/> tag to allow a new line.

     

    example from one of my Apps

    CourseGallery.Selected.Course_Title & "<br/>
    ID: " & CourseGallery.Selected.ID & "<br/>


    You would then have to use the IsHTML: to send the email:

    Office365.SendEmail(
     [EmailAddress],
     [Subject],
     HtmlText1.HtmlText,
     {
     Importance: "normal",
     IsHtml: true
     }
    );


    Thanks,

    Nicky

  • bongobus1 Profile Picture
    65 on at
    Here’s an example that works for me -

    Office365.SendEmail(“theemailaddress”,TextInput1.Text,Char(10) & TextInput2.Text & Char(10) & “My contact details are = “ & TextInput3.Text) ; Reset(TextInput1);Reset(TextInput2);Reset(TextInput3);Notify(“Thankyou for your email”,Success)


    Sometimes it’s a little thing like a comma or end bracket omitted or in the wrong place that causes the issue
  • OneThing Profile Picture
    393 on at

    Hi @Anonymous

     

    Char(10) is a Line feed. While Char(13) is a carriage return.

     

    Different programs handle them differently so out look will probably work with a Char(13) better.

    Its good practice to use both though with a Char(10) & Char(13)

    for more info :

    Carriage return is from the days of the teletype printers/old typewriters, where literally the carriage would return to 
    the next line, and push the paper up. This is what we now call \r. Line feed LF signals the end of the line, it signals that the line has ended - but doesn't move the cursor to the next
    line. In other words, it doesn't "return" the cursor/printer head to the next line.

    Thanks,
    Nicky 

  • Community Power Platform Member Profile Picture
    on at

    Hi Everyone

    Thank you for all your replies

    We haven't got full Office365 integration here at work, so I can't add the Office365 or OutLook connectors 😕
    Hence why I'm using the Launch() function

     

    I feel really stupid though, because I keep trying your suggestions but whatever I do the body still all comes out on one line?

     

    Launch("mailto:myemail@email.com
    &subject=Subject Line
    &CC=purchases2@company.com
    &Body=FAO Reservations," & Char(13) & "Please can I booked the following...")

     

     

  • OneThing Profile Picture
    393 on at

    Hi @Anonymous

     

    The Launch command works a little different as you are now using the MailTo: syntax which has its own peculiarities

     

    In this case use %0D%0A To fix your issue.

     

    Launch("mailto:myemail@email.com
    &subject=Subject Line
    &CC=purchases2@company.com
    &Body=FAO Reservations,%0D%0A Please can I booked the following...")


    Here is the full spec including examples in case you have any other issues using Mailto: https://tools.ietf.org/html/rfc2368

    Thanks,
    Nicky

  • Community Power Platform Member Profile Picture
    on at

    It worked!!!

    Thank you so much @OneThing Smiley Very Happy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard