Mail not working on WordPress site
Mail not working on WordPress site
Mail not working on WordPress site
When the user_register action is triggered, data from the registration form can be accessed in $_POST. Get first_name and last_name on user_register hook
You use include_once in praga_emails_after_order() method therefore files (templates: email-confirm.php, email-admin.php, email-proveedor.php) will be included only in the first iteration. Try to use include instead of include_once, it’s possible that next emails are not sent because of empty content.
Some issues is because php version of your server hosting not valid with your website. First, you must check what php version that your hosting used, check from WHM->server information (right menu). Now, back to your cpanel dashboard, seleck multiPHP manager, choose your site and select php version(right menu dropdown), choose with the same php … Read more
Using a SendGrid transactional template with wp_mail
How can I remove the product short description from the WooCommerce Mails?
Contact form with file upload
Have you tried using has_term()? if( get_post_type($post) === $post_type && has_term( ‘In progress’, ‘call_type’, $post ) ) wp_mail($emails, “New Item listed on Fit It List. Ref number $title”, $message);
Try changing your headers from \n to \r\n Note from here that: Each line should be separated with a CRLF (\r\n). Lines should not be larger than 70 characters.
I’m not sure how WooCommerce adds these fields, but I suspect it uses add_user_meta after the user_register form or something. Try and catch it this way instead: if ( isset( $_POST[‘first_name’] ) ) { $first_name = $_POST[‘first_name’]; }