If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
I have just completed and finished testing my first WordPress Plugin, ‘New User Email Set Up’. The function of the plugin is to provide a basic interface so that admins can define a custom email that is sent to users when they first register. Subject, Text Body, From Address, Admin Subject and Admin Text Body can all be defined, to allow for a more personalised feel to your blog, that doesn’t have such a generic ‘welcome’ email.
I set about writing this plugin after I saw a few users in the forum asking about how to define their own welcome email, and also it didn’t seem logical to me to have to hack a core file, that on upgrade would be replaced, especially if the user had no specific PHP knowledge.
I am aware that this plugin is not entirely unique, as James Kelly’s Themed Login demonstrates. However, that plugin incorporates a lot more than is sometimes necessary (why have to change the login page if all you wanted to do was change the welcome email?).
You can grab the downloads here:
New User Email Setup (1388)
Installation
- Download and Unzip newuseremailsetup.zip
- Upload to your wp-content/plugins directory
- Go to the Plugins page of your admin screen and look for ‘New User Email Set Up’ and press ‘activate’
- Now go to Options>New User Email and change the default text to what you want, remembering to use the variables!
- Now make sure to test your new email, and you’re done!!
I shall add more to this page when I get some feedback, so please feel free to suggest improvements!
You can also donate a small amount on the plugin option page to say thank you, and to keep me interested in updating this plugin!
Change Log
- Version 0.2.5 - March 24th 2008 - Admin page style updated ready for WordPress 2.5 release.
- Version 0.2.1 - November 20th 2007 - Fixed some HTML issues by adding stripslashes()
- Version 0.2 - November 14th 2007 - Added HTML email functionality and removed plugin conflicts by renaming of variables.
- Version 0.1 - September 29th 2007
Plugin Conflicts
Any other plugin that sends emails to new users when they register will conflict with this one because of the use of the function wp_new_user_notification. There is no work around for this as that is the function used in all the registration files.


can you enter html in the email body?
not at the moment, but it is an option that I am going to implement soon. There will be a choice of plain text and HTML, its easy enough to do, ill have a new version up in a few days.
Alex -
I’ve downloaded the plugin and set-up accordingly and have a email written and ready to go. Since registering multiple new users to send out to I havent recieved any of the emails that should be sent out. Is there something that I should perhaps be looking for or missed? I’m running WP 2.2.3
Mark
I have added your plug-in but do not get email sent to either new user or admin when the admin creates the new user. Your text doesn’t specifically address admin-registered users. Should your plug-in work for admin-registered users? If so, thoughts on what might be wrong? If not, how might this be activated for admin-registered users?
Thanks!
Matthew
@ Matthew - when you add a user manually, you should receive an email to your defined admin email, but the user does not receive any notification, this is normal WordPress behaviour, but there are plugins for this.
I will look into incorporating this into a future version of this plugin.
@ Mark - are your users admin-registered too? i have tested this plugin on 2.2.3 and I receive the admin email, but ill dig into it some more
Alex -
Yes, all users were set-up by me (admin). They were set-up in the subscriber role with current working emails. Neither the user or myself as the admin recieved an email upon setup. Could it be something with the mail interface?
This is being used in conjuction with a private client only area so I’m setting up their access according to the passwords / username that they’ve provided.
Thanks again for the help!
Thank you for this plugin. I’m using WP 2.2.3 and it works.
@ Mark - Are you using any other plugins that use any kind of mail function? I can only think that there is a conflict somehow.
I suggest disabling all other plugins and then try registering via the admin method, if you receive the email, then the problem is conflict related. Reactivate plugins one by one, registering again each time(slow I know) and see which one stops the process.
I’d be interested to know what you find
An update is coming soon, including a German language file, HTML body support and no plugin conflicts!
If we wanted to change the content of the new user email manually, which .php file would we go into to do this?
@needhelp - the file is pluggable.php, in wp-includes. Dont forget though that changes to this file will be lost on upgrade unless you keep a backup. That is the beauty of plugins like this one, that a) there is no need to risk messing up a core file, and b) there is less hassle on upgrade.
There hasn’t been a plugin yet that really does what I’m looking for.
What I wanted to do was customize all the emails that get sent to the newly registered person such as registration, password reset and new password emails. I don’t care so much about the ones I receive when someone registers.
In the pluggable.php file I can only find the email content for the email that I would get sent as an Admin. What I’m really looking for is in which file the content exists for the email that gets sent to the newly registered person. I have found all the rest, just not this one.
Thanks for your help.
Hi. Love your plugin, but there seems to be a conflict with “Post Notification”. HTML emails from that plugin are going out as text showing the raw HTML code.
@vrsnake - Glad you like it!
thanks for letting me know about the problem. I have a new release ready to go that will not conflict with other plugins, and also alows html emails to be sent, just waiting for my new computer to be able to update the plugin database. Should be in the next couple of days.
Eagerly awaiting the new release. Thanks again!
Just tried out your new release and it is now compatible with “Post Notification”. Thank you for the new release.
hi there, I jsut tried your plugin, but there seem to be some problems with the formatiing. I input some html but the notification mails are not properly formated, the links all go to a blank.gif ?
I could demonstrate it if you allowed me to subscribe one of your email addresses to my blog, as I have to deactivate the plugin now, hope you can provide me with an email which I can register so you’ll see what strange email you’ll get. I’ll also send you the code I formated the email with.
A new minor update has been released fixing some HTML problems. Thanks ovidiu for the heads up.
ok, this update fixed the first problem, but - linebreaks are still stripped out of the registration mails. did you notice? I reregistered you on my testsite..
are being stripped out@ ovidiu - In the code you sent me, your line breaks were </ br>
they should be <br />
It’s a wonderful plug-in.
JA localize + corrected it a little.
It confirmed the operation with WordPress2.3.1. Release the translation file from the
site here.
We are using WP 2.3.2 and your plugin New User Email Set Up 0.2.1, it is working perfect regarding e-mail sent to new registerd user. However email message to website/blog admin is not arriving.
How can we fix this?
Best regards,
@Laloma - does the admin receive the notification when the plugin is disabled?
Are you using any other plugins that do similar things to mine?
Alex: Thanks for your reply.
Well at the initial installation point without any email plugins, WP only sent the Admin email, we try to fix the User email issue, but no fix was posted at WP forum/doc’s.
So we install New User Email Set Up 0.2.1, as the only email plugin. Right now it is working with the Admin message issue.
For your info, after the problem/issue, we deactivate New User Email Set Up 0.2.1, and install WP-Mail-SMTP 0.5.2 which work perfect but it don’t permit us to modify the text of the message.
We test New User Email Set Up 0.2.1, with Email Set Up 0.2.1 active, deactivated and deleted, same problem, Admin message is not arriving.
Hope to hear from you soon.
Best regards,
Hi! thanks for the plugin! I wonder if we could add more fields into the mail that it is actually sent to the administrator when someones register. I have the userfields plugin, so my subscribers enter more data like their names, address, etc, and I wonder how can I get all that data into the email that it’s been sent to me when they register
thanks!
I’m using this plugin on mi website but it’s not working. I still get sent the default emails from wordpress.
I have “Version 2.3.2″.
Any help?
Uploaded the zip file to the wp-content/plugins folder and used the cPanel Extract File Contents option but because the zip file contains a two level directory structure the plugin did not appear in the Plugins admin panel. So, make sure you extract the files to your local machine and then upload the newusersetup folder and contents to wp-content/plugins.
Terrific plugin, without a doubt.
One question: Is there a variable for sending the new user’s email in the Administration Notification?
Ironically this is one thing that standard WordPress sends, so I assume there is a variable like %email% or something similar.
Otherwise this works perfectly!
@ Eric - You can use %useremail% , it should have been listed on the admin page as a usable variable, but for some reason it wasn’t and I hadn’t noticed.
I’ll release an update soon, I’ve got a lot of uni work at the moment, but there are lots of modifications to be done to this plugin, and they’ll be coming soon…
Hello Alex, thanks for the plugin! Unfortunately, I will be needing to register all my users manually, and in that case WP does not send a registration mail message.
I saw you mention to an earlier commenter that there are other plugins out there to handles sending an email when new users are added manually. I have searched the WP Plugins site, with no success. Is there a particular plugin you were thinking of.
Hey, I like your plug-in, which is very helpful for me to manage multi-author blog.
In my blog, only administrator can add new user in administration page.
But seems if we do this way, the plug-in won’t send out any email to new user.
or did I do something wrong? (wp 2.3.3)
Hi there, I downloaded your plug in today and installed it per your instructions. Tested the e-mail but did not receive a new user e-mail after registering. Any suggestions? Thanks
@Jeanette - Did you register the new user via the admin panel, or did you register as an ordinary visitor to your site would, using /wp-register.php?
If you use the admin panel, the user does not receive an email.
Are you using any other similar plugins that might be conflicting?
@ Alex
Thanks for stopping by my site. I got your note and updated the plugin link, should be all good now.
- Danni
hi there.com plugin but :
Does anybody know if this script is compatible with Wordpress 2.5?
Thanks in advance for any help on this!
Hi Alex,
I’ve just tried your plugin on my WP 2.5 blog, and found it doesn’t fully work in conjunction with the Register Plus plugin from http://wordpress.org/extend/plugins/register-plus.
That plugin adds a password field to the register page, which allows the user to specify their own password when they register rather than being assigned a random password by WP.
I found that when I used that plugin and yours together, WP still assigned the new user a random password rather than the password they’d typed into the registration field themselves - ie. it ignored the password they’d actually typed in themselves. The email they received via your plugin contained a random password within the %password% variable.
Any ideas why that would be?
Thanks!
@Jeremy - Thanks for letting me know about that. The reason for this is that that plugin uses a modified version of wp_new_user_notificaiton to send out the new password, but my plugin also uses that function to define the email sent.
Where I use that function, it hooks into the standard password generation method. If you like, I can make you a custom plugin that will incorporate both plugin’s tasks?
This Rocks! Thank you very much!
hi. Thanks for plugin
perfect…
Does this work with 2.5? I tried it and it didn’t work. Maybe it is just my problem though.
@Nathan - It should work with 2.5. Do you have any plugins that do similar things, like anything to do with registering users etc?
Do you just not receive any emails at all?
Great plugin, Alex! It’s especially useful since my website is a subdomain of my main hosting account, so the generic registration emails come from a completely unrelated address.
I too would like to put in a vote for RegisterPlus compatibility, and would love a custom version until then. I’m doing my first WordPress-based site (dev version can actually be found at http://www.sledd.com/swwp) and have a handful of small tweaks (this being one of them) to address before going live.
J.
When someone registers at my blog, your plugin sends two emails to me and my users with the same content, and they are put in Bulk folder.
I only want to send one email when someone registers and it will not be put in Bulk folder.
Please help me soon !
@tom - Can you let me know what version of WordPress you are using? I’ve tested the plugin on all versions since 2.0, and haven’t come across that problem before.
Are you using any other plugin that alters the registration process in anyway?
When you say bulk, do you mean the junk/spam folder? My only suggestion for that is that you might be putting too many links in the email, or using words that spam filters don’t like. Other than that I’m not sure.
@John Sledd - OK, I’m not going to be able to work on it until after 23rd May, as I’m busy with exams, if you need to have it done sooner, send me an email and I’ll see what I can sort out.
I’m using Wordpress 2.5 and didn’t use any plugin that alters the registration.
Maybe I put too many links in the email, so that my email is put in bulk folder.
But your plugin still sends two email to my users.
Please fix !
Hello,
I have downloaded the tool but it still doesn’t work . I disabled all other pluggin and try creating a new account, but I don’t get an email.
What am I doing wrong?
Please help
Hi Alex,
your plugin rock!!! I’ve been having a headache making the registration process work, and thanks to your plugin, now I can make it work and MORE….
Nice plugin!
Have you considered doing an addFilter on ‘wp_mail’ and looking for the subject substr string “New WordPress.com User”, then look for “Username:” and “Password:” in the subject. This would almost guarantee that you’re intercepting the WordPress default outgoing message.
Then fill in your data instead and Viola! You’ve done what this plugin does and you’re not interfering with anyone elses plugin (in theory). Not only that, but you’re also not messing with the WP core libraries and overriding what probably shouldn’t be overridden/subject to change without notification between releases.
Just a thought…
Nice admin screens too, i like the simplicity and powerful options.
-Steve
It would be very helpfull to include in the next release of your plugin “NEW USER EMAIL SETUP” the use of the return email address indicated at “FROM ADDRESS” at plugin setup, to change the return address specified when sent an forgotten password email.
Would this be possible ?
Best regards,
Hi Alex,
The plugin is awesome. I just installed it and it’s so simple and easy to use! only one minor question: when the registered user receives a email, the “from” column shows the email address, instead of a name.
e.g., it doesn’t show “Aisa” in my case, but Aisa@xxx.com. How can I adjust this?
Thanks a ton!
Aisa
Hello,
please, replace this line:
<input id=”newuseremailfromaddress” type=”text” size=”40″ value=”" name=”newuseremailfromaddress”/>
for this code:
<input id=”newuseremailfromaddress” name=”newuseremailfromaddress” type=”text” size=”40″ value=” />
Thanks, and good work!
I’m sorry, the blog system removed part of the code… so here is an URL with correct the code.
URL: http://pastebin.com/f1f0b6159
See you later.
Great plugin, very thanks