New User Email Setup Update
I have just released an update to my ‘New User Email Setup’ plugin, and have made a jump to version 0.5 since the code has had a complete rewrite, and added functionality for WordPress 2.7 upwards.
This update has been long overdue, and quite a lot has been added to the plugin behind the scenes, and a couple of admin screen changes.
For more information about the plugin if you haven’t used it before, head to the original post and you can download it from here New User Email Setup (4538).
IMPORTANT: AFTER UPDATING TO THE LATEST VERSION, PLEASE GO TO THE ‘NEW USER EMAIL’ OPTIONS PAGE AND SAVE YOUR OPTIONS AGAIN. You need to do this because the options structure has changed. In future versions this will be automated.
Added in this version are:
- Added security with wp_nonce
- Functionality if admin has altered the root to wp_content
- Added Class structure to avoid any possible conflicts
- Changed options to be saved in an array, making a smaller footprint on the database
- Added 2.7 compatibility for admin screens
- Added the possibility to use a From Name along with the From Address
- Added a link in the WordPress footer on the admin page to give a quick link to the plugin homepage if support is needed. Thanks to Striderweb
Don’t forget to leave a comment if you like the plugin, or if you have any issues with it. Since it has been completely rewritten, I want to make sure you are all happy with it! Also, let me know of any other features you might want implementing.
I’d also appreciate it if you could rate the plugin at the official plugin repository, or even make a post about the plugin if you’ve found it really useful.
Comments are now turned off on the original post, so leave any comments here.
Enjoy!










60 Comments - Add Yours!
Hi Alex,
I am running Wordpress 2.7.1. I downloaded your ”
New User Email Setup Update” plugin, but when I activate the plugin, I receive an error:
“Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c04/h03/mnt/65642/domains/capebiofuel.hammerandpencil.com/html/wp-content/plugins/newuseremail05/newuseremailsetup.php on line 44″
Do you know why this would be occuring?
Thank you in advance for your assistance,
Mike
@ Mike – I’m not sure why this is happening, it certainly doesn’t happen on any of my sites. Where did you download the plugin from, here, or the official repository, or through the plugin panel in your blog admin?
Could you also tell me what is on your line 44, maybe the file got corrupted when downloading?
Alex: Thank you for the quick response. Line 44 is:
public $nue_options, $NewUserEmailAdminOptions;
I’ll e-mail a screen capture of the code.I downloaded the plugin from your site and installed the plugin through the plugin panel in my blog admin.
Should I try a manual upload via FTP of the plugin?
@ Mike – I’ve checked the php documentation, and it appears that public has only been available since php 5, are you using php 4 by any chance?
Yes, I was running PHP4. I’ll update to PHP5 and will see how it goes. Thanks!
Good news. After I upgraded to PHP5, I reinstalled the plugin and it’s working. Cool. Thanks so much for your help and the plugin looks great! -Mike
Error when activating;
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /wp-content/plugins/newuseremailsetup.php on line 44
@Joseph – See the comments above. I’ve realised this might be an issue, so I have just rewritten a PHP 4 version of the plugin, which you can download from the official repository.
Thanks for the upload. I downloaded 0.2.5 and it works again
I’ve used this plugin before, but trying to install it on a WP v.2.7.1 site I get this message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/feefi0/public_html/blog/wp-content/plugins/new-user-email-set-up/newuseremailsetup.php on line 44
Any ideas?
Thanks
@ John – See the comments above. Unfortunately, the only thing I can offer at the moment is to go to the plugin trac and click on download ‘Original Format’ at the bottom. This version has the added functionality, and will work with WP2.7.1, but doesn’t use anything PHP 4 can’t do.
I’ll try and get this so only one file is needed regardless of what version of PHP you are using. Although I must say, PHP 5 has been out for a long time, and unless there is a specific reason you aren’t using it, there should be no reason why you can’t upgrade with your host.
Thanks Alex. I just emailed my hosting support desk to see if they can upgrade to PHP 5. If not, I will try the older version.
BTW, I was able to upgrade to PHP 5 easily for both sites (even though they are on different hosts).
Thanks
Hello
I’m from hungary and a have a problem.
The plugin is work good exept that the characters are encoding problem:
Üdvözölek = Üdvözöllek
Can i do shamthing vith the codeing?
Thanks
Hello
I solve the problem.
I added new line in php code.
code:
—————————————
if ( !is_object( $phpmailer ) ) {
require_once(ABSPATH . WPINC . ‘/class-phpmailer.php’);
require_once(ABSPATH . WPINC . ‘/class-smtp.php’);
$phpmailer = new PHPMailer();
$phpmailer->CharSet = get_option(‘blog_charset’);
}
————————————
The new line is:
$phpmailer->CharSet = get_option(‘blog_charset’);
and accented chars is ok.
I am pretty new to word press, and i am having an issue when someone registers to my blog. They are supposed to get an email with their username and a password but they are not. I am using your new user email plug in also but it will not save anything i change on it. I am using PHP5
@Mr Berber
Do you have a firewall plugin running? If so, you may have to deactivate it or put your IP address on a whitelist if the plugin allows that. I know that my firewall plugin occasionally prevents me from making legitimate changes and updates. Just a thought.
Yeah, I had the same issue with character encoding
$phpmailer->CharSet = get_option(’blog_charset’);
this solves the problem.
Can you include this line in next update? Thanks much.
Is it possible also to change default emails sent to users who are reseting their password? Could you give us a hint, if you know how to do that?
Hi,
I have installed the plugin, but it doesn’t seem to work. I run 2.7.1 on the blog that I want it to work with.
At first the problem was that I couldn’t activate it because of PHP4. I upgraded to PHP5 and I successfully activated. Now the problem is that the plugin doesn’t change anything. I have made a custom e-mail for new users, but still you only recieve the standard WP e-mail.
Please help!
Thanks
@Zsolt and Jiri – Thanks very much for suggesting and confirming that. It shall be in the next release, which should be out in the next week or so.
@Rasmus – Are you using any other plugins that alter the registration process, such as to add more fields, or to allow users to pick a password? Are you registering users yourself in the admin panels?
The plugin works fine for me except the From Name is cut off at 18 characters. How can I make sure the Entire From Name is displayed properly.
Rich
@Rich – Thanks for the feedback. This was an issue I was aware of, a couple of other users have also had this problem. I have been working on a fix, and the next release of the plugin should fix the issue, I hope!
@Alex – No. I have tried other plugins aswell, but they are deactivated when using this one. And no I am not registering users myself.
I am wondering if it could have anything to do with my current settings at Mediatemple? I made the plugin work on a different host with no problems.
@Alex – It seems I found the problem. I have Simple:Press forum installed, and that causes the problem. As soon as I deactivate it, the plugin works again. Now the problem is that I really need Simple:Press. Any ideas on how to fix it?
Thanks!
@Alex – Back once again… I solved the problem. I wasn’t aware that Simple:Press had it’s own built in welcome mail function. When I deactivated it everything was fine. My bad
@Rasmus – Glad you got it sorted!!
Hi Alex – plugin works great – however in my From address – I want to use “The 8.45 Club”… bizarrely when it comes through – the ‘b’ is cut off… I’ve tried “845 Club” but the same thing happens…
Any ideas why it doesn’t like ‘b’s!?
Thanks,
Mark
@MC – Glad you like the plugin! I am aware of the issue you’re having, and I think I’ve fixed it, although I’m not really sure why it is happening. There a couple of other things I wanted to tidy up before releasing an update, which is a little overdue now. I shall try and get it out by the start of net week, but I’m a little busy at the moment.
Because GoDaddy is so lame, I have to use SMTP instead of PHP mail (). How hard would it be to modify the code to use the existing SMTP mail function defined in Cimy Swift SMTP?
Just a thought.
@Nick – I’ve never looked into that to be honest. But the plugin uses its own mail function that it passes to
mail, so in theory that could just be replaced. I’ll have a look and let you know.Hi Alex – be really grateful for an update on the ‘b’ problem!
Many thanks,
Mark
@MC – I’ve sent you an email with a fix, let me know if it doesn’t work!
Hi Alex – I’ve got the same problem as Nick, the client is on Godaddy hosting and I’ve done a workaround with WP-Mail-SMTP, but am wondering how to get your awesome plugin to use SMTP.
Hi Alex,
first let me thank you for a great plugin, it is always nice to be able to customize automatic emails.
I have a question though, I seem to be having problems with placing a number in the From name, I can see the number in the database, but when the email is sent, the number in the From name, seems to be removed. I have had a look in the code, but can’t find where this is happening, have you had any issues with this and if that is the case, could you let me know how to fix it.
Cheers,
Olaf
Hi Olaf, I keep promising to release an update that fixes this, I’ve just got a lot else on. It is an issue that I’m aware of, and it’s fixed in a version I’ve got ready to go, it just needs a little tinkering. The problem if you’d like to have a look yourself, is how the from address and name are formed – that is to say that they aren’t formed properly, so when the mail function does a preg_replace, it’s striping the last character, because it’s looking to strip an
>that isn’t there!Hi Alex,
thank you very much for your reply, I will see if I can find that preg_replace, else I will just wait for your new release that fixes this.
Cheers
Hi Alex, I was using your plugin and it worked really well until I moved to another host and then, every time I try to save settings after I’ve modified the email, it gives me a 500 internal server error. Do you have any idea what is causing that? I am missing this plugin too much, please give me a clue how to make it work again.
Is there a variable for the first name and the last name? (at least for the first name?) Thanks for the help in advance!
-Nathan
Hi Nathan, thanks for stopping by. The only variables related to the user that are available are those that are available when the user registers, ie username, email address and password.
If you have your registration set up to add other fields, then a custom build would be needed to use these variables.
This plugin is terrific. But I’m having a problem…that’s opposite of the others.
Emails are being sent to the user. However, confirmation (of new registrations) emails which should be sent to the administrator are not being sent. Before installation of this plugin, they were.
Running:
Wordpress 2.7.1
Hostgator, PHP5
I’ve set up Cpanel email for admin and sending email addresses.
This isn’t the end of the world, but it would be nice to have both user email and administrator emails working.
Thanks again for your work on this.
OK, I just discovered that whichever email address is indicated in the “From” is the same address to which the confirmation is sent.
So, I guess this is a modification request. I’d like to send the email to user from “info@”, but have the confirmation of the user registration sent to “admin@”. Currently, the from address (in this case “info@”) is address which the registration confirmation is sent and there is no option to send the email from one address…but send the registration confirmation to another address.
Hi Daniel, That shouldn’t be a problem, I’ll stick it in the next update. Thanks for visiting!
Hello,
Great plugin!
I just had a question. I’m using the php4 version of the plugin because my site is quite involved and many other plugins need it. I have a plugin when a user registers it allows them to input their own password and has a captcha for spam prevention. However, when I use your plugin along with it, I did a test user and when I signup I am emailed an automatically generated password and am unable to use the one the user created themselves.
Do you have any way around this?
Sorry to bother you again with my question but just wanted to know if you had any ideas regarding my last question?
Add
Hi Add, sorry for not responding earlier, it was a case of having to go away and think about it, and then forgetting to come back!!
This is possible, but is currently outside the scope of the plugin. I do, however, keep getting requests for this feature, so I may well look at implementing it.
If you want to have a look yourself, you would need to see how the password was stored and passed to the email in the other plugin, and look at using that variable globally, so it can be used in this plugin.
Hi Alex, I noticed that you answered all the other comments but somehow forgot mine, could you please answer:
I was using your plugin and it worked really well until I moved to another host and then, every time I try to save settings after I’ve modified the email, it gives me a 500 internal server error. Do you have any idea what is causing that? I am missing this plugin too much, please give me a clue how to make it work again.
Hi Simone, I’m really sorry that I missed replying to your comment. If you could look at your server logs after you get the error, it should give us some hints as to what is causing the problem, and comment back and we’ll see what we can do.
i am on your website bcoz
i found your plugin iin wordpress
and i don’t no how i putt this plugin in my website please explain me
nice plugin i will use it, but needs one more thing.
the forgot password email.
is the third part of the wp-login page.
can be done in the next release?
also in the admin section can it be added a variable for the ip of the user(beacause if he spams the site to ban him)
Hi anunturi, I’ve stayed away from anything to do with the password because there are so many plugins that deal with it, and I feel that the password reset doesn’t really come under the New User umbrella. If you want a custom version of the plugin though, I am available for hire.
As for the problem with sending emails to the admin, is the email you entered set up on a server?
This isn’t an issue with the plugin, so I can only think to check your server logs, and to check your spam/junk mail and also the mail function used by your server. Let me know what you find.
another problem.
the admin emails aren’t sent. just the user emails works
nice post, hope the admin email work again.
great plugin but i had problem with polish charts, i try add new line like Zsolt wrote but this not work. I still have ?! in headers and email content.
This is definitely a feature request, not a bug.
I’d really like the option to define different emails for different user roles.
In my case, most of the blog contributors are not tech-savvy, so your plugin provides a great way to give them a kind-and-gentle introduction to WordPress.
However, we’re also using a chat plugin that requires registration, and I’d like to send the new “Subscriber”-level users a totally different email, one that links to the chat page and doesn’t reference any of the “Contributor” features.
Ideally, it would be nice to be able use the same email for more than one role (e.g. I would send the same one to “Contributor” and “Author”), but if that makes life difficult, I can also just copy/paste between boxes.
I’d be happy to sponsor development of this feature; just contact me directly via email with a quote if you’re willing and able to add it!
It’s a nice concept Sarah, but not practicable since Wordpress does not offer any way for user A to sign up as a Subscriber and user B to sign up as a Contributor. You can only choose one role for new users. If you want certain users to have a role higher than that you have to promote them after they sign up, at which time you can send them an email that says whatever you want it to say. Another option would be to use a plugin like Peter’s Login Redirect that can send users to a specific page after logging in, based on their role. You could put the info on that page. Furthermore, you could use a plugin like User Access Manager to hide that page from the other roles.
HTH,
John Nasta
Thanks, John. That makes sense. In our case, we’re manually creating users of different levels, but I can understand that that’s probably not the standard use case.
I appeciate the ideas of other plugins; I’ll check those out.
Hey Alex, Great plugin for WP.
Thanks a million,
Alex, Great functionality, just what I need.
WordPress 2.9.2, New User Email Setup 0.5.2.
When I click Plugins > New User Email Setup > Settings, I see the settings fields for a split second, then all I see are the h3 heads. I downgraded to the previous version and this worked OK, but I was having trouble with the emails being sent out so I upgraded to 0.5.2, and this is happening again.
Hi Bill,
Glad you like the plugin. The settings fields all get hidden by default just to save space on the page, and to allow the user to open each section one at a time to concentrate on those settings. If you hover over the h3 bar, a little arrow should appear on the right hand side, and clicking that drops down the settings fields. Let me know if that still isn’t working for you.
Well that’s embarrassing. Works fine. Thanks.