Home › Forums › Themes Support › Claue › Edit Email details from WordPress
Tagged: wordpress email
- This topic has 14 replies, 2 voices, and was last updated 7 years ago by mikestar.
-
AuthorPosts
-
-
December 11, 2017 at 2:45 pm #14724
Hi,
I have activated low inventory notification on woocommerce settings. When the product quantity was low, I received an email about low product quantity, but the email sender name was “WordPress” and email ID was “[email protected]”. How to edit the sender name and email id from which these emails are sent?
I want to avoid using a plugin for this as there are already so many plugins, is there a way to edit the details manually?
Some sites suggest to add the following code to the theme’s functions.php file:
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return ’[email protected]’;
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return ‘Your Name’;
}
// Hooking up our functions to WordPress filters
add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ );Can you please confirm the right way? Or would you suggest a plugin?
Thanks!
EDIT: I have not implemented SMTP plugin yet. Would this solve the problem? http://support.janstudio.net/forums/topic/contact-form-not-working/#post-14687
-
December 11, 2017 at 4:08 pm #14726
Hi,
Did you try update email in WooCommerce > Settings > Email or at Settings > General change default email with your and check again.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 11, 2017 at 4:10 pm #14727
Yes, I had already changed that default name and email under woocommerce email settings. Most emails are coming as per updated email and name. But few emails(like low inventory notification) are still coming from ‘WordPress’ name and wordpress@mydomain
-
-
December 11, 2017 at 4:20 pm #14728
Is the email send to your email notification about low stock or the email send to your customer about low stock?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 11, 2017 at 4:22 pm #14732
Sent to me (site email notification), not customer.
-
-
December 11, 2017 at 6:46 pm #14740
Hi,
This email send from your system
Please go to WooCommerce > Settings > Product > Inventory > Notification recipient(s) (Change the email to different with email in WooCommerce > Settings > Email and check if it work.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 12, 2017 at 4:20 pm #14779
Hi Harry,
That has not worked. Today I received a ‘New user Registration’ email from ‘WordPress’ and [email protected] to the admin email.
Any other solution?
-
December 12, 2017 at 6:03 pm #14788
Hi Mikestar,
Could you check config of plugin https://wordpress.org/plugins/pirate-forms/ is it use “[email protected]”
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 12, 2017 at 7:05 pm #14792
Checked, Pirate forms is not using [email protected]
Any other solutions?
-
-
December 13, 2017 at 12:18 am #14810
Could you send us new account to login your site. I tried old account but can’t access you site. I need closer check to help you solve this.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
December 13, 2017 at 12:30 am #14813This reply has been marked as private.
-
-
December 13, 2017 at 11:30 am #14838
Hi Mikestar,
I saw you use gmail. You can follow this video to use gmail to send email https://www.youtube.com/watch?v=kmqMmKfoblM
Now we used gmail and plugin https://wordpress.org/plugins/gmail-smtp/ for our support site.
Best regards!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 13, 2017 at 12:16 pm #14841
Hi Harry,
Just to clarify, I use gmail only as recipient email. Therefore I believe gmail smtp may not solve the problem.
Moreover, if you could go to the frontend of the site and register as a customer, the email you would receive is from name “MySite” and email “[email protected]” and even the orders etc.
P.S. Hey, I now just tried adding the following code in functions.php and this has worked. :
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return ‘[email protected]’;
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return ‘MySite’;
}
// Hooking up our functions to WordPress filters
add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ ); -
December 13, 2017 at 5:29 pm #14857
Hi Mikestar,
Sound great! Can i mark this topic as resolve?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 13, 2017 at 5:39 pm #14858
Sure, Harry.
-
-
AuthorPosts
You must be logged in to reply to this topic.