Title: Notifications Not Formatting
Last modified: August 30, 2020

---

# Notifications Not Formatting

 *  [Jeff](https://wordpress.org/support/users/jschodde/)
 * (@jschodde)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/notifications-not-formatting/)
 * I’m using the Email add-on and find that the emails are being sent as one continuous
   line of text (i.e. new lines being stripped).
 * Example:
 * [https://www.dropbox.com/s/wxixbiev2d743vq/2020-08-30_11-48-08.png?dl=0](https://www.dropbox.com/s/wxixbiev2d743vq/2020-08-30_11-48-08.png?dl=0)
 * I’m using the HTML format option. I’m also using the WP Mail SMTP Pro plugin 
   to send Emails (if that matters).
 * Here’s what the email definition looks like from the WP Adverts Email add-on:
 * [https://www.dropbox.com/s/cg41dy76xdaxq0z/2020-08-30_11-50-05.png?dl=0](https://www.dropbox.com/s/cg41dy76xdaxq0z/2020-08-30_11-50-05.png?dl=0)
 * Here’s what the text version looks like. Note how there are no paragraph tags:
 * [https://www.dropbox.com/s/1djldkzcmnko7sa/2020-08-30_11-53-20.png?dl=0](https://www.dropbox.com/s/1djldkzcmnko7sa/2020-08-30_11-53-20.png?dl=0)
 * What would cause this and how can it be fixed?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/notifications-not-formatting/#post-13337259)
 * Hi,
    by default in the HTML mode, the emails module expects to receive exact 
   HTML to be sent that is it does not format it in any way, so to have the text
   formatted you can either:
 * – switch to Text and enter in the editor the `<br/>` and `<p></p>` tags.
    – add
   the code below in your theme functions.php file it should insert the tags automatically.
 *     ```
       add_filter( "wpadverts_message", function( $mail_args ) {
         $mail_args["message"] = wpautop( $mail_args["message"] );
         return $mail_args;
       } );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Notifications Not Formatting’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [formatting](https://wordpress.org/support/topic-tag/formatting/)

 * 1 reply
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/notifications-not-formatting/#post-13337259)
 * Status: not resolved