Home Forums Themes Support Claue Edit Email details from WordPress

Topic Resolution: Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #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

    • #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

      • #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

    • #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

      • #14732

        Sent to me (site email notification), not customer.

    • #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

    • #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?

    • #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

    • #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

      • #14813
        This reply has been marked as private.
    • #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

    • #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’ );

    • #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

    • #14858

      Sure, Harry.

Viewing 10 reply threads

You must be logged in to reply to this topic.