Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

WordPress new user email formatting issues

I had the same issue.
I finally succeed to display the message with proper line breaks by surrounding the body of the message $wp_new_user_notification_email['message'],in your case, with html tags (html, head, body) and filtering it with nl2br.

Hope it will help.

Related Posts:

  1. Is there a way to embed an iframe in an email with text that updates?
  2. Create custom welcome email without a plugin
  3. Include HTML template file in wp_mail
  4. WP mail sent to MS Exchange recipients = occasional email corruption?
  5. Getting image in mail
  6. Images in wp_mail not showing
  7. About Custom Email Template Design Responsive
  8. Not able to override pluggable function with a mu_plugin
  9. What is the correct way to send multipart email in wordpress?
  10. Send and receive emails with wp_mail() for WP User (like Mailserver)
  11. SMTP connect() failed PHPmailer – PHP
  12. What is the difference between ports 465 and 587?
  13. Email validation in Ruby on Rails?
  14. Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
  15. How to set SMTP programmatically
  16. changing notification emails from WordPress @mydomain.net to something else
  17. Disable user registration password email
  18. Alert Email when any Post or Page is Changed
  19. Do something after sending email
  20. How do I customise the new user welcome email
  21. How do you update user_email on the front end in WP 3.3?
  22. Missing URL in password reset email
  23. User Without Email?
  24. “Reply-to Address” Email
  25. prevent users from changing their email address
  26. Disable new user notification to admin email
  27. Allow Duplicate Email Address for Different Users
  28. Email confirmation on registration
  29. Customizing lost password email
  30. Mail will not send in HTML
  31. Email sent from WordPress has HTML tags
  32. How to disable automated E-Mail on PHP error/exception?
  33. Reset Password – change from name and email address
  34. How do i send mail with custom Form Data using WordPress
  35. Email as Username in registration
  36. Email stats at Ma.tt contact form
  37. Fwd: [Website Name] Notice of Email Change [closed]
  38. Send all WPMU emails via SMTP
  39. Send mail to wordpress admin
  40. Send a confirmation of user role upgrade conditionally
  41. WP Cron emails not working
  42. Dynamically send pdf attached to post with contact form 7 [closed]
  43. Few chars getting replaced with ‘=’ in mail content in wp_mail()
  44. Locked out of my own blog and password reset not working
  45. wp_mail recipient array not sending?
  46. Change Password notification text on mail
  47. Transferring contact form input to an email account without using an email-proxy
  48. Should I use the standard wp_mail() function for a premium theme?
  49. Send batch of posts as HTML Email?
  50. On form submission how to send 2 email to different users
  51. How to Configure SMTP on wordpress Cant Send Email
  52. email wordpress users using BCC
  53. Contact Form 7 + Configure SMTP: Sender email appearing as my own email [closed]
  54. email sends from [email protected] even though I have it set to something else
  55. How to add line breaks to $email[‘body’] when using auto_core_update_email hook
  56. Handle registrations in WordPress when user doesn’t have any email?
  57. Joining confirmation email
  58. How to sent one form values to 2 different sites in wordpress
  59. How to setup SMTP for only one specific wp_mail()
  60. apostrophe in email name
  61. Sanitizing and validating email field
  62. Disable WP notifications for commenting on own posts
  63. General Setting Allow Multiple Email Notification
  64. Must I change the admin user email address while changing the general email address?
  65. User invite email not delivered – related to subdomain?
  66. Woocommerce HTML email option unavailable
  67. Can I configure WordPress to use postfix without a plugin?
  68. Ability to download only after email supplied [closed]
  69. Batch Emails with wp_mail()
  70. Email notification after registration in WordPress
  71. Subscribe from another website to the same list [closed]
  72. Obfuscating Email Addresses in Form Fields
  73. Email ‘from address’ has a www in it
  74. How to validate website field in contact form 7?
  75. How to Change WooCommerce new order email?
  76. Trigger WordPress Actions from Email?
  77. WordPress E-mail Config
  78. Is there no way to send email using SMTP without plugin or custom coding?
  79. How to change WordPress email notification sender?
  80. Contact form sender email
  81. PHP mail() works but wp_mail() does not
  82. Send email daily from WordPress site
  83. WordPress Add New User – Send an Activation Email
  84. Send email only upon draft
  85. Mechanism to send to users of secured WordPress install new notifications by SMS or email?
  86. How to change the Customer new account email
  87. Sending emptys emails every day, How stop it?
  88. wordpress do not let user registered with info@ email and other reserved emails to get registered by users
  89. Emails marked as spam because it’s contain via box4231.bluehost.com
  90. How to change the text of automatic E-Mails e.g. after changing your password? (German localization)
  91. Is it possible to change an existing post status from ‘pending’ to ‘publish’ via email?
  92. WordPress email reply back to the original post author
  93. Limit number of emails per second
  94. What can be wrong when automated backups stop being sent to email?
  95. Wp_new_user_notification doesn’t work
  96. WordPress reset password email is not working – woocommerce and checkmail does work
  97. How to set custom from email address in wp
  98. How do I make WordPress send an email to the user when his account gets approved (manual by me)
  99. Throttling email frequency
  100. Make WordPress use timezone for email Date header
Categories email Tags email, html-email
WordPress Search function with partial and exact match
What’s wrong with this meta query? (order by meta key, then title, doesn’t work)

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress