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/
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);
- The topic ‘Change User email to HTML Template’ is closed to new replies.