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!
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!
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.
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.
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.
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.
<?php
/*
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) )
return;
$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.
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.
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
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!
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.