Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that possible to add a line break in the email body? #21

Open
Luckygirlllll opened this issue Dec 19, 2019 · 6 comments
Open

Is that possible to add a line break in the email body? #21

Luckygirlllll opened this issue Dec 19, 2019 · 6 comments
Labels

Comments

@Luckygirlllll
Copy link

Is that possible to add a line break in the email body? If yes, how can I do this?

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@raphaelalvarenga
Copy link

Hello, I'm in the situation here. Is there any to handle that? I tried the tradition \n but it doesn't work. Thanks for now.

@sushant1408
Copy link

Does anybody have any solution for this?

@Luckygirlllll
Copy link
Author

Yeah, adding "\n" in the body of email works for me!

email(to, {
            subject: topic,
            body: "My text"+ "\n"+ "\n"+
            " my extra text."
        }).catch(console.error)

@mednche
Copy link

mednche commented Oct 1, 2021

\n becomes <BR> on my iOS phone instead of looking like a proper new line. Does anyone know of a better solution?

@Tahriff
Copy link

Tahriff commented Jun 23, 2022

This <BR> showing up on iOS phone is the iPhone Mail App with iOS 14.6. As stated here https://developer.apple.com/forums/thread/681023 there is not much you can do about it. It is fixed with iOS 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants