Resending woo-commerce order emails from frontend
Okay… so this code actually works. The issue was you cannot resend an woo-commerce email that is not generated yet. And woo-commerce emails are generated only when status is changed.
Okay… so this code actually works. The issue was you cannot resend an woo-commerce email that is not generated yet. And woo-commerce emails are generated only when status is changed.
see if your WordPress can send other emails because if it is a configuration issue that can be fixed. Download a plugin to send mail or write your own or something to test the mail connection.
Why are users not receiving registration emails from my website?
I agree with @birgire that #53829-core would be the ideal way to do this. If you need a hack that works in the meantime, though, then you can examine the filenames in the call stack. add_filter( ‘wp_mail’, ‘modify_system_emails’ ); function modify_system_emails( array $attributes ) : array { $wp_mail_caller = get_wp_mail_caller(); if ( is_core_file( $wp_mail_caller[‘file’] ) … Read more
Make the following test. Disable all of your SMTP plugins. Temporarily enable WP_DEBUG and WP_DEBUG_LOG in your “wp-config.php” file. Insert the following code in your theme “functions.php” file: add_action( ‘phpmailer_init’, function ( $phpmailer ) { $phpmailer->isSMTP(); $phpmailer->Port = 587; $phpmailer->SMTPAuth = true; $phpmailer->SMTPSecure=”tls”; $phpmailer->FromName = get_bloginfo( ‘name’ ); // Type your SMTP credentials below. $phpmailer->From … Read more
So what you want to do, assuming I understand correctly, is check if the user already exists in the system. I don’t think using names is a good idea, two people can have identical names. I have two guys with the same first and last name that play on a soccer team with me. Emails … Read more
Send summary email from a form with wp_mail
This is done with the register_new_user filter: // Replace the default new user notification remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’); add_action(‘register_new_user’, ‘my_new_user_email’); You have to remove the default action and register the new function: Create a new function that builds and sends the message. function my_new_user_email($user_id, $deprecated = null, $notify = ‘user’) { // create the message $message = … Read more
set up User email verification after Signup in wordpress theme
Customising WP user activation email