Email format is showing as HTML
-
Hi,
I have set up formainator plugin and set up the subscribed user registration and login.
After submitting the registration form I am sending a mail like this.add_filter( 'wp_new_user_notification_email', 'filter_wp_new_user_notification_email', 10, 3 ); function filter_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname) { $wp_new_user_notification_email['subject'] = 'Your '.$blogname.' account has been created!'; $user_login = $user->data->user_login; $password_generated = $additional_content = ''; $email_heading = "<center>BILINGUALNEWS</center><center>バイリンガルニュース</center>"; ob_start(); include(__DIR__.'/../../themes/twentynineteen_child/woocommerce/emails/email-header-cpy.php'); include(__DIR__.'/../../themes/twentynineteen_child/woocommerce/emails/customer-new-account-cpy.php'); include(__DIR__.'/../woocommerce/templates/emails/email-footer.php'); $string = ob_get_contents(); ob_end_clean(); $wp_new_user_notification_email['message'] = $string; return $wp_new_user_notification_email; }
Attached the files too.
https://drive.google.com/file/d/1H54wvolV37HwNfm272FIka09WSKk5xNa/view?usp=sharing
https://drive.google.com/file/d/1ttGar9_OiGd0nV38Pu8FpMlwJswZhUI1/view?usp=sharing
https://drive.google.com/file/d/16-LWPTS7SkL5EM8zZcjXNXpGM_5LtP37/view?usp=sharing
Below format I am getting the emails.https://drive.google.com/file/d/1heu00EWvL6bYMN4Ga7BKcp-yGfCEpl_u/view?usp=sharing
Please help me to resolve this. Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Email format is showing as HTML’ is closed to new replies.