Title: Change User email to HTML Template
Last modified: September 1, 2016

---

# Change User email to HTML Template

 *  [Dono12](https://wordpress.org/support/users/dono12/)
 * (@dono12)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/change-user-email-to-html-template/)
 * I’m trying to change out the Cimy default email sent to users for email (Verification-
   Key) and (Welcome Email) which includes password and user name info. I’ve a plugin
   following various online tuts, but I can’t seem to over-ride the template sent
   by Cimy. Can you point me in the right direction please.
 * [https://www.smashingmagazine.com/2011/10/create-perfect-emails-wordpress-website/](https://www.smashingmagazine.com/2011/10/create-perfect-emails-wordpress-website/)
 * function wp_new_user_notification($user_id, $plaintext_pass) {
    $user = new WP_User(
   $user_id);
 * $user_login = stripslashes($user->user_login);
    $user_email = stripslashes($user-
   >user_email);
 * $email_subject = “Welcome to MyAwesomeSite “.$user_login.”!”;
 * ob_start();
 * include(“email_header.php”);
 * ?>
 * A very special welcome to you, . Thank you for joining MyAwesomeSite.com!
 * Your password is
    Please keep it secret and keep it safe!
 * We hope you enjoy your stay at MyAwesomeSite.com. If you have any problems, questions,
   opinions, praise,
    comments, suggestions, please feel free to contact us at any
   time
 * <?php
    include(“email_footer.php”);
 * $message = ob_get_contents();
    ob_end_clean();
 * wp_mail($user_email, $email_subject, $message);
 * [https://wordpress.org/plugins/cimy-user-extra-fields/](https://wordpress.org/plugins/cimy-user-extra-fields/)

Viewing 1 replies (of 1 total)

 *  [vbkun](https://wordpress.org/support/users/vbkun/)
 * (@vbkun)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/change-user-email-to-html-template/#post-7539081)
 * I’m trying to find a way to deal with the subject/contents of CIMY email’s before
   it hits wp_mail, but I have no idea how to do it without modding it.
 * What you can do is look in wordpress for the filter ‘wp_mail’ ( [https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail](https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail)).
   This filters runs inside wp_mail and will allow you to do any sort of modification
   to any outgoing email.

Viewing 1 replies (of 1 total)

The topic ‘Change User email to HTML Template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cimy-user-extra-fields_dae8f3.svg)
 * [Cimy User Extra Fields](https://wordpress.org/plugins/cimy-user-extra-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cimy-user-extra-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cimy-user-extra-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cimy-user-extra-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cimy-user-extra-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cimy-user-extra-fields/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [plain](https://wordpress.org/support/topic-tag/plain/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [text](https://wordpress.org/support/topic-tag/text/)

 * 1 reply
 * 2 participants
 * Last reply from: [vbkun](https://wordpress.org/support/users/vbkun/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/change-user-email-to-html-template/#post-7539081)
 * Status: not resolved