I need to send the reset email to user and admin. In this thread there is a solution:
How to send details to users registered to admin as an email in wordpress?
But I don't know where and how I have to put the admin email or the user_admin in the field "to"
wp_mail(
$wp_new_user_notification_email['to'],
wp_specialchars_decode( sprintf( $wp_new_user_notification_email['subject'], $blogname ) ),
$wp_new_user_notification_email['message'],
$wp_new_user_notification_email['headers']
Thank you very much for your help.
Related
I need help to send message email with Front end PM pro plugin how to add different user role when user send message.
i try send message user to admin and auto send email to admin i need add user role in email template
I have a question about the email notification, after the registration new customer or the recovery password whatever with the order or registration. The website sent me a default WordPress notification.
In Woocommerce Settings>E-mail, I am already set up with emails notification
and it should look like that:
I already setup SMTP with plugin WP Mail SMTP.
Thanks for help
I am looking for a snippet to completely disable the email notification sent out to users when an Admin changes their email in WordPress.
For context, it's this email:
[site name] Email Changed
Hi user name,
This notice confirms that your email address on [sitename] was changed to[ useremail].
If you did not change your email, please contact the Site Administrator at
[admin email]
Found this with a quick google 😉
WP Docs: https://developer.wordpress.org/reference/hooks/send_email_change_email/
<?php
// functions.php
add_filter( 'send_email_change_email', '__return_false' );
My Woocommerce shop allows to buy for anonymous customers without email address.
One of allowed payment method is online card payment.
I added blind copy to notification mail to allow admin know about payment:
add_filter('woocommerce_email_headers', function ($header, $email_id, $order) {
if ('customer_processing_order' === $email_id) {
$header .= "BCC: MyShopAdmin <myshopadmin#domain.net>";
}
return $header;
}, 10, 3);
Works great when customer entered email during checkout process.
None of email when customer not entered email address. Yes, it's reasonable - no email address = no email.
But I want to inform shop admin about successful payment even no customer email address entered. How to do it?
Guess exists some point in Woocommerce where I can analyze email headers early before mail send init. I did not find any hooks / filters for that.
Does anybody can help me?
instead of adding filter at woocommerce_email_headers why dont you try woocommerce_payment_complete hook
This would facilitate shop admin about successful payment event
add_action( 'woocommerce_payment_complete', 'payment_complete' );
The email settings in WooCommerce list the WordPress administrator email address and I need the email to go from the customer to the vendor, not to the administrator. Can anyone please assist? Thank you.
You may need to modify the WooCommerce email function to send that e-mail to the vendor e-mail. If you check dokan_wc_email_recipient_add_seller in dokan-lite/include/functions.php then you will see that Dokan is adding vendor e-mail with the admin e-mail to send new-order email to the vendor. Similarly, you have to do this for other email notification.