• When manually adding a new user on WordPress go to: my dashboard – Users – Add new
    After I added a new user an automatic mail is sent to the new user
    This mail consists of the following text:

    Username: test
    Visit the following address to set your password:
    https://www.nl/wp-login.php?action=rp&key=jqL1o4Hu5DHSDgcHQFLX&login=test
    https://www.nl/wp-login.php

    Questions:
    1. Where can I find the email template, so I can change this text?
    2. This email is send from the address [email protected]. Were can I change this address to the address of my site?
    3. I, the owner get an email also with the text:
    New user registered on your site
    Username: test
    Email address: @gmail.com
    Where can I stop this mail from sending?

Viewing 7 replies - 1 through 7 (of 7 total)
  • corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @dwnl,

    WooCommerce comes with a number of front-end HTML templates as well as email templates. Instead of editing these files directly within the plugin (which is a very bad idea because once update the plugin and all of your changes will be lost!), you can copy them into your theme:

    1. In your theme directory, make a new folder called woocommerce.
    2. Navigate to the WooCommerce plugin directory and open the templates folder. The templates folder has a lot of subfolders with all of the different templates that WooCommerce uses.? Fortunately, the template file structure and naming in WooCommerce is easy to follow.
    3. In your newly created woocommerce folder, copy the template file that you want to edit. Remember to keep the directory structure the same here. If the template you want to edit is within a subfolder then remember to create that subfolder within your theme’s directory.
    4. Edit the file from within your woocommerce folder and save the changes.

    All emails templates are located in the emails folder and have two templates, one for the HTML version, one for the plain text version.

    You can choose the sender value from the Emails settings as well:


    Link to image: https://d.pr/i/cEWXoT

    Thread Starter SLV

    (@dwnl)

    Hello Remi,

    Thanks for your help.

    Unfortunately the ‘new user’ mail template is not in the folder: plugins/woocommerce/templates/emails

    There is: new account, but not ‘new user’

    Also, the email sender options in your image I have filled in correctly in Woocommerce for my site.
    But this is not used for the ‘new user’ mail.

    corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @dwnl,

    Ok, it seems that you are referring to the WordPress new user email then, not the WooCommerce new account email. Then, I’d suggest you follow this guide: https://www.intelliwolf.com/how-to-edit-the-new-user-email-template-in-wordpress/

    Thread Starter SLV

    (@dwnl)

    That is a bit complicated information…

    I only have to add the following?

    /* Customize Emails */
    add_filter(‘wp_new_user_notification_email’, ‘rego_welcome_email’, 10, 3);

    function rego_welcome_email($wp_new_user_notification_email, $user, $blogname)
    {
    if (get_user_meta($user->ID, ‘membership_user_role’, true) == ‘job_seeker’)
    {
    # change the default email
    $wp_new_user_notification_email[‘message’] .= sprintf(“\r\nWhile you’re there,
    please complete your profile, so that potential hirers can find you and
    contact you.\r\n\r\nSee you there,\r\nWebsite Owner”);
    }
    return $wp_new_user_notification_email;
    }`

    But where must I put this?

    And also, the email sender options in your image I have filled in correctly in Woocommerce for my site.
    But this is not used for the ‘new user’ mail.
    Your link does not tell me how to change this

    corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @dwnl,

    This code is just a starting point and must be adapted, as it is it won’t work for you. There are probably other tutorials that would provide maybe a better snippet, but since this isn’t a WooCommerce thing but rather a WordPress function, I’m afraid we won’t be able to go any further here.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @dwnl,

    Just a heads up, I’ll go ahead and mark this thread as resolved as it’s been inactive for a while. Hopefully, the above info was helpful.

    If you have further questions, please feel free to open a new topic.

    Thanks.

    Thread Starter SLV

    (@dwnl)

    Why so soon @abwaita? It’s only been a week…
    This is why there are so many of the same threads out here.
    Because they are closed, people open new threads with the same questions that are asked before.

    As the given information and tips are a bit complicated.
    I installed the plugin: Better Notifications for WP
    https://nl.www.ads-software.com/plugins/bnfw/
    This one works great and is free.

    But I do not know how to stop:
    3. I, the owner get an email also with the text:
    New user registered on your site
    Username: test
    Email address: @gmail.com
    Where can I stop this mail from sending?

    • This reply was modified 3 years, 7 months ago by SLV.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change the new user notification to user email’ is closed to new replies.