PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Customize outgoing registration emails?

  1. Hello!

    This plugin is working great so far. Something I'd like to do is customize the emails that are sent out, but I can't find where in the PHP the emails are compiled.

    Can somebody help with this?

    Thanks so much!

    Posted 10 years ago on Tuesday June 4, 2013 | Permalink
  2. I'm also looking to do something similar and found Theme My Login plugin to customize the emails. However, it doesn't seem to be working with Gravity Forms.

    Posted 10 years ago on Thursday June 6, 2013 | Permalink
  3. We just hook into the standard WordPress core functionality that sends out the new user welcome email. We don't control the look and feel of that.

    Posted 10 years ago on Thursday June 6, 2013 | Permalink
  4. Hey guys. I just tried a couple plugins and even searched through the WordPress php files and couldn't find a way to customize these emails.

    Has anybody had any luck doing this?

    The plugins I used were "Register Plus Redux" and "SB Welcome Email Editor". Neither had any effect on the email sent by gravity forms.

    Posted 10 years ago on Saturday June 8, 2013 | Permalink
  5. I'm going to try and post some code below.

    This is a plugin that overrides the default wp_new_user_notification function. Place it in a folder in your plugins directory, customize it, and activate it. Works for me.

    Plugin Name: Registration Email Template
    Author: Kory Mathis
    Version: 1.0
    Author URI: AUTHOR_URL
    // Redefine user notification function
    if ( !function_exists('wp_new_user_notification') ) {
        function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
            $user = new WP_User($user_id);
            $user_login = stripslashes($user->user_login);
            $user_email = stripslashes($user->user_email);
            if ( empty($plaintext_pass) )
            $message = sprintf(__("Welcome to %s! Here's how to log in:"), get_option('blogname')) . "\r\n\r\n";
            $message .= "LOGIN_URL" . "\r\n";
            $message .= sprintf(__('Username: %s'), $user_login) . "\r\n";
            $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n\r\n";
            $message .= sprintf(__('If you have any problems, please contact us at EMAIL_ADDRESS.'), get_option('admin_email')) . "\r\n\r\n";
            $message .= __('Thanks!');
            wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message);

    Note: I haven't been able to get HTML tags to work. Seems like it's set to plain text.

    Posted 10 years ago on Monday June 17, 2013 | Permalink
  6. AUTHOR_URL, LOGIN_URL, and EMAIL_ADDRESS in the above code are meant to be replaced with real addresses. For some reason this forum kept wrapping my URLs with html tags inside the code.

    Posted 10 years ago on Monday June 17, 2013 | Permalink
  7. globaldev

    That worked for me John.
    Thank you very much for sharing that with us.
    Sad it won't take html, but it is fine for this kind of notification email.
    All the best

    Posted 10 years ago on Tuesday June 18, 2013 | Permalink
  8. wolf123

    Hi Guys!
    I've a similar problem! I need to deactivate the normal Wordpress notification email because I use only the Gravity Forms notification with the plugin User Registration Add-On.

    Now, when a new user is registred, he receive 2 email. The first one is the default email by WP, and the second is the nice email that I personalized in the notification pannel.

    So, is it possibile to deactivate the first email by WP, and leave only the second email?
    Many thanks!

    Posted 10 years ago on Thursday June 27, 2013 | Permalink
  9. Richard Vav

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder. Thank you.

    Posted 10 years ago on Saturday July 27, 2013 | Permalink

This topic has been resolved and has been closed to new replies.