Title: wp_mail()
Last modified: August 31, 2016

---

# wp_mail()

 *  Resolved [kofoedandreas](https://wordpress.org/support/users/kofoedandreas/)
 * (@kofoedandreas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wp_mail-4/)
 * Hi guys,
 * Awesome plugin! But I have made some customizations and I send some custom mails
   through a custom plugin.
 * Whenever I call wp_mail() it doesn’t wrap my mails in your hot layout.
 * What do I do?
 * Reference:
    $to = $receiver; $subject = “My header”; $message = “My message” 
   $headers = “Content-type: text/html; charset=UTF8′ . “; wp_mail( $to, $subject,
   $message, $headers );
 * Best regards,
    Andreas
 * [https://wordpress.org/plugins/wp-better-emails/](https://wordpress.org/plugins/wp-better-emails/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [kofoedandreas](https://wordpress.org/support/users/kofoedandreas/)
 * (@kofoedandreas)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wp_mail-4/#post-7113178)
 * I just set the $headers = “”; instead………
 *  Plugin Author [Nicolas Lemoine](https://wordpress.org/support/users/nlemoine/)
 * (@nlemoine)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wp_mail-4/#post-7113277)
 * Hi,
 * The email has to be plain text to be wrapped by the template. You can set any
   headers, just don’t use “text/html” but “text/plain” instead.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_mail()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-better-emails_f6f6f6.svg)
 * [WP Better Emails](https://wordpress.org/plugins/wp-better-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-better-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-better-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-better-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-better-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-better-emails/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nicolas Lemoine](https://wordpress.org/support/users/nlemoine/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/wp_mail-4/#post-7113277)
 * Status: resolved