WP Welcome Email Editor

This follows on from a blog post I wrote recently about the WordPress Welcome Email Editor. I have released the plugin into the WordPress Extend Directory. This page is used to host a changelog and screenshots.

As there were no hooks for the welcome email I had to override the wp_new_user_notification function and write my own then simply converted it to use Options and wrote a nice admin page for it. Let me know if I can extend it at all or if you find any bugs..

Downloads have been moved to the WordPress Plugin Directory although you can download the first version below.

>> WordPress Welcome Editor Plugin Page

Admin Email Received

Admin Email Received

Admin Page for Plugin

Admin Page for Plugin

Email Received By User

Email Received By User

193 comments

  1. Jonas says:

    Hello Dave, Your plugin worked great.. for a while. Now it doesn’t replace the email but sends the default WP mail. Is there an option to reset the plugin? Even without any other plugin activated your plugin doesn’t work anymore.
    Thanks in advance, Jonas

    • Sean says:

      Hi Jonas, It’s Sean not Dave :) It sounds like something else must be conflicting. Try changing the theme. Are you certain that no other plugins are active. Try this article of mine for some help maybe: http://www.sean-barton.co.uk/2012/01/wordpress-plugin-queue-jumping-easy/

      Otherwise as a test trying downloading an old version of my plugin and reuploading it to see if it helps. It’s the first I have heard of it not functioning when it has done before so need a bit more information to be able to help really. Try emailing me directly if you like (barton.sean@gmail.com).

      thanks
      Sean

  2. Jonas says:

    Hey Sean,
    Found the problem. The Profile Builder plugin conflicts…
    jonas

  3. SMIFFY says:

    Hi Sean,

    The plugin is great – just what I needed. Just one slight problem – the forgot password email doesn’t show the correct [admin_email] address; registration and password reminder are fine. Any suggestions please?

    Thanks

    SMIFFY

    • Sean says:

      Hi Smiffy.. well spotted, thanks for that! I have just updated the plugin and released a new version for you to use. It now fills in the shortcode properly along with some more nifty little fixes like the from name and email being used site wide instead of just for welcome emails etc…

      Let me know if you have any issues with it.

      thanks
      Sean

  4. Ian says:

    Hi there, thanks for your great plugin ‘SB Welcome Email Editor’.

    It worked find, but just upgraded today to Version 2.7 and tested but now the emails are coming as (unknown sender)

    Any ideas why?

    • Sean says:

      Hi Ian, thanks for getting in touch. My apologies for that. Do you have the from email and name filled in in the plugin settings? It should only use the WP filter to set it if there is something in there. Let me know.

      thanks
      Sean

  5. DavidK says:

    Hi -
    Great that you’ve built this plugin .. I really need it to function properly on an evolving private social networking site I’m building using WordPress Multisite. I’ve tried several others along the same lines, but none of them even get close to working.

    With yours … when if I add a new user to the base site and click the radio button to NOT send and email confirmation … Your email goes out properly, but also the standard default WP Network “Dear User, Your new account …”

    Is there anyway to stop that from happening.

    Note, I have spent hours with this — I disabled the plugin, changed the name (adding the “-”) and then re-installed it.

    Also — if I don’t check that radio button when setting up a new account, your email doesn’t get sent at all and the user only gets the WP default junk.

    Note that I’ve got a bunch of other plugins working at the same time… including several that manage log-in security and functional access. And, there’s more to come as I try to add a social networking capability or minimally a forum plugin.

    Can you help??

    Please let me know — soonest…

    THANKS!

    • Sean says:

      Hi DavidK,

      Thanks for your comment. I think you must be using a multisite blog and to my knowledge there isn’t a welcome email editor plugin that supports it properly (including mine). I wonder if I can help you sort it out. Do you want to perhaps get in touch with me directly and I work through it with you. barton.sean@gmail.com

      thanks
      Sean

  6. zAPF says:

    Hi, the two latest versions i’ve been getting theese errors:

    “Notice: Undefined property: stdClass::$set_global_headers in /home/yip/public_html/game/wp-content/plugins/welcome-email-editor/sb_welcome_email_editor.php on line 213″

    my reserch lead me to this line: “if ($sb_we_settings->set_global_headers) {
    sb_we_set_email_filter_headers();
    }”
    but no idea why it gives me a notice on that since its defined a few lines erlier…
    maybe a default value needs to be set somewhere???
    would appriciate some help. :)

    • Sean says:

      Hi zAPF,

      Thanks for getting in touch. You are correct in that it is defined a few lines above but only conditionally.. as in only once. I have added this addition in recent versions but older users will see the error. The simplest way to sort it is to go to your settings page and hit save. That will declare the variable and you won’t see it again. Failing that you can grab the version I have just checked into the repository which suppresses that notice. It’s a notice and not an error. Your server for some reason has them turned on. Not a problem but you might see lots of those around particularly with WordPress as it itself causes quite a few.

      thanks
      Sean

      • zAPF says:

        Thanks, updating the seettings got rid of it. :-)
        Cant access the server config, but managed to get around by turning of notices by hooking into ‘init’ but for some reason it didnt afect your plugin. Using it to run what i would call a social game powerd by wordpress, just launched it. http://game.yip.se

  7. Dhika says:

    Hello, I’m getting this error after entered username/email on Forgot Password:

    Fatal error: Call to undefined function esc_html_decode() in /var/www/virtual/indocosplay.com/htdocs/wp-content/plugins/-welcome-email-editor/sb_welcome_email_editor.php on line 91

    I tried to rename plugin folder with dash in front of it (-welcome-email-editor), but still no luck.

    Also, I can not see any Password Reminder button in Dashboard>User. And welcome mails are not sent, my site still uses default welcome / activation link, which goes straight to SPAM on most webmail T_T

    The only thing works is New User Notification to my admin email.

    I’m using WordPress 3.3.1 with BuddyPress 1.5.4 and bbpress 2.0.2.

    Any help would be much appreciated :)

    • Sean says:

      Hi Dhika,

      Thanks for bringing this to my attention. the function should be esc_html and not esc_html_decode. It was a copy/paste error on my part. I have just released a new version which should sort it. The password reminder button has been moved to that same page but in the action list when you mouse over each person. The link will not show if you have no stored password to send. Try updating the profile including password of a random user and then checking if the button is there or not. Keep the dash in place.. it should help with conflicts. Buddypress is known to have issues with it. Perhaps temporarily turn off the other plugins and see if the effect is any different.

      thanks
      Sean

      • Dhika says:

        Thanks for the quick response!! :D

        Forgot/Reset Password now works properly and it sent the email template that I wrote on your plugin.

        Sadly, I still can’t find that “Reminder” button when hovering user picture in Dashboard -> Users. The only options pop up are Edit and Delete.

        Also, welcome mail still send the default message from WordPress. It doesn’t send the one from your plugin.

        I still work things out with other plugin, and just for information, here’s the list:

        1. Add image_src Meta Tag Version 1.1
        Adds an image_src meta tag to your header using post thumbnnail – helps sites like FaceBook use a relevant image as thumbnail when sharing content.

        2. Akismet Version 2.5.5
        3. bbPress Version 2.0.2

        4. BP Photos+tags Version 1.1
        Photo Albums for BuddyPress with friend tagging (like facebook). Includes Posts to Wire, Member Comments, and Gallery Privacy Controls. Works with current BuddyPress theme and includes Easy To Skin Templates.

        5. BuddyPress Version 1.5.4
        BuddyPress Template Pack Version 1.2.1

        6. BuddyPress Twitter Version 1.2
        Let your members and groups show their Twitter Follow Button on their profile page and group page. Using the twitter’s @username widget, the plugin fetches your members and/or groups username and displays their folow button in the member’s/group’s header.

        7. BuddyPress Usernames Only Version 0.58
        Override display names across your BuddyPress site with usernames.

        8. CataBlog
        CataBlog is a comprehensive and effortless tool that helps you create, organize and share catalogs, stores, galleries and portfolios on your blog.
        Version 1.4.2

        9. Facebook Thumbnails
        Zero-configuration Facebook Thumbnails plugin. Modifies blog & post output to prevent Facebook from making assumptions as to what thumbnails to include.
        Version 0.2

        10. Picbox
        Incredibly sexy image overlays using Picbox v2.2.
        Version 1.2

        11. SB Welcome Email Editor Version 3.2

        12. Simple Facebook Connect Version 1.3
        Makes it easy for your site to use Facebook Connect, in a wholly modular way.

        13. Twitter Facebook Social Share Version 2.3.0
        WordPress plugin for twitter, facebook, Google +1 (plus one) and other social share. Can add the share box before post contents, after and also floating on left hand side of the post.

        14. Unconfirmed Version 1.2
        Allows admins on a WordPress Multisite network to manage unactivated users, by either activating them manually or resending the activation email.

        • Sean says:

          Thanks Dhika,

          Are you using multisite? I thought you might be because of Buddypress. It’s not 100% compatible with multisite although I am working on it. The hooks are different so it might explain why the reminders and the normal welcome email don’t send correctly.

          ta
          S

          • Dhika says:

            I don’t know what you mean by multisite. It’s just a website with buddypress and bbpress. It has single database, and single domain only. A simple social network, I might say :)

            Pardon my language, i’m not a native English speaker…

          • Sean says:

            Hi Dhika,

            It’s ok. Can you try turning off all other plugins and retrying for me? Contact me via email barton.sean@gmail.com and I can help you.

            thanks
            Sean

  8. Max says:

    Hello!

    I use Buddypress 1.5.4.
    After new user registration, WP Welcome Email Editor
    doesn’t send a registration email.

    “..New user registration on your blog..” works and send an email.
    But it doesn’t send a registration email with username and password and a link for login page??

    regards max

    • Sean says:

      Hi Max,

      Thanks for letting me know. Buddypress is something I have had mixed responses about. Using WordPress in multi site mode, as I understand it, can be unpredictable for plugins such as mine however I understand it to work in single site mode. Which is yours? If the former then it’s certainly on the list to sort, if the latter I shall take a closer look asap.

      thanks
      Sean

    • Sean says:

      Hi Max, my plugin doesn’t currently properly support multisite. I need to do some more debugging and testing and then will post an update for you.

      thanks
      Sean

  9. Nedda says:

    I’ve installed wordpress 3.3.1, and now when a new member tries to register, they are unable to do so.

    1_ After entering a username and email address, and clicking “register,” and error message appears saying, “ERROR: Please enter a password.”

    2_ No email is sent out with a temporary password.

    Thanks.

    • Sean says:

      Hi Nedda, it looks like you are using another plugin to help with registration. I can see there is a CAPTCHA test there and some tooltips asking you to fill in certain fields on the form and my plugin doesn’t do that. Try disabling the other plugin and retesting.

      thanks
      Sean

      • Nedda says:

        Hi, Sean,

        I took down the CAPTCHA and that didn’t seem to make any difference. Then I took down “Theme my Login” and retested, and your plugin works fine.

        Sorry to have taken your time with this. Glad to have a solution.

  10. bobby says:

    Hi Sean,
    Thanks for a great plugin! I’ve used it for awhile now without any issues. However, I recently updated from an older version (i can’t remember the version #, but old, like 1.7 maybe). When I tried the test option in the update I was getting long delays before email delivery was made to Admin and the New User – like 4 hour delays. I checked for errors and got the following error:

    WordPress database error:[Table 'mysite_ca.wp_ex3547_bp_xprofile_fields' doesn't exist]
    select f.name, d.value FROM wp_ex3547_bp_xprofile_fields f JOIN wp_ex3547_bp_xprofile_data d ON (d.field_id = f.id) WHERE d.user_id = 1

    Interestingly, I’ve changed a few things with some other plugins and now I’m not experiencing the long time delays – the emails are sent to both Admin and New Users immediately. However, I’m still getting the above said error.

    I’m not a developer but I’m trying to make a web site functional. In your opinion what does that error mean?

    Thanks in advance for any help! And thanks for a great plugin.

    • Sean says:

      Hi Bobby, sorry for the late reply, I have been on holiday. The slowness in the email system is most likely the temperamental internet or some sort of SPAM filter holding the emails for checking. Once an email has been sent from the site (immediate) then it’s hit and miss as to whether it arrives. Obviously it always gets there but typically the system is considered ‘send and forget’. Glad it’s sped up though!

      The error you are experiencing looks like remnants of a Buddypress install or something. My plugin doesn’t use any database tables of it’s own and I expect wp_ex3547_ is your database prefix leaving bp_xprofile_fields as the table it can’t find. I could disable Buddypress if you are using it and see if the issue goes away. Or alternatively disable and re-enable it to hopwfully cause the install routine to fire off the table creation statement again and create the table.

      Failing that let me know and I can find the table creation statement for you and get you to run it to get rid of that error.

      Let me know how it goes.

      thanks
      Sean

  11. Matt says:

    Hi Sean,
    Thanks for the great plugin. I’m working on a WordPress/Buddypress site. I’m having some trouble though… I installed the plugin and made changes to the content of the new user email. When I tried to save my settings, I was redirected immediately to the homepage of the site. The content changes I made were never saved. Could you help me out? What do you think is going on?

    Thanks!
    Matt

    • Sean says:

      Hi Matt,

      Multisite and Buddypress have always been a bit off with this plugin. I need to look properly into both and as such neither are officially supported at the moment. Sorry about that. I shall do some testing and improve support for a future version.

      thanks
      Sean

  12. Manuel Santos says:

    Hello,
    On this plugin, SB Welcome Email, the “Welcome Email Settings” and “Password Reminder Service”, have Admin Email Notification, but the “User Forgot Password” don´t notify the Admin by email.
    After i install the plugin, the site don’t send me the info of User Forgot Password.

    Please implement this.

    Thanks

  13. Alari says:

    Hey Sean,

    I use your WP welcome e-mail editor, which sends out emails/notifications as it should. No issue there.
    But I started wondering how to make sure, that the emails don’t end up being classified as spam, and thus never making into the inbox,

    Have you come across any such problems, if so, what’s there to do ?

    • Sean says:

      Hi Alari,

      Great stuff, glad you use it. Stopping things from going into spam can be a combination of things from the from address/name combination to the content itself if it has too many links or the content is a bit spammy. Each filter is different although one sure fire way to help out is to send using an SMTP server instead of using the PHP Mail command as WP does by default. There is a plugin called WP Mail SMTP which I thoroughly recommend that is a case of activating it, adding your server info and that’s it.

      Let me know how you get on.

      ta
      S

  14. Ian says:

    Hello Sean,

    Great plugin and thank you. I get an error message:

    WordPress database error: [Table 'cou1133503110253.wp_bp_xprofile_fields' doesn't exist]
    SELECT f.name, d.value FROM wp_bp_xprofile_fields f JOIN wp_bp_xprofile_data d ON (d.field_id = f.id) WHERE d.user_id = 7069

    This message occurs when a user checks out with a product order using the Shopp plugin. Do you know what might be causing this? I haven’t installed BuddyPress on the site.

    Thanks,
    Ian

    • Sean says:

      Hi Ian, Thanks for letting me know. I just remembered that the plugin does check Buddypress database tables so if they aren’t there then an error will be thrown. That might be it. The code now has some more logic around it and I just released V3.3. Look out for the update and then it should be fine.

      ta
      S

  15. Haider says:

    Hi Sean,
    I am using your plugin on a multisite and it seems to work ok. One thing. I tried to add another plugin for user verification and the plugins clashed.

    Any chance of you adding this facility to your plugin so it can be all in one?

    By user verification i mean; and email is sent to a potential subscriber to verify their email before they can complete their registration.

    Thanks.

    • Sean says:

      Thanks Haider, added to the suggestions list. I like the idea. I wonder why it conflicts.. what happens? Do they just not send emails?

      S

      • Haider says:

        It flashes up a message when trying to activate the pluggjn called User Activation Email by Nate Jacobs saying it clashes and can not be activated.

        Not entirely sure it would work anyway as tried it out on its own with the registration pluggin i am using(profile builder) and doesnt work anyway!!

        Keep us posted please if you add the functionality

        • Sean says:

          Thanks Haider, might be worth you choosing an activation email plugin that works and then trying it with my plugin ;) I am looking at multisite support soon so will look to release activation email support into that as well for you.

          thanks
          Sean

  16. lalakoi says:

    Hi Sean. I run a business directory. When a advertiser on my directory gets an email the From name and email adress is that of the directory. I want to change that the header shows the name and email address shows that of the person who sent the email. Is this possible with your plugin and how.
    Regards lalakoi

    • Sean says:

      Hi lalakoi,

      The details of the from address and email can be set using my plugin. If for some reason this isn’t working then try adding the WP Mail SMTP plugin which works a treat in conjunction with my plugin.

      thanks
      Sean

  17. When I make changes in the SB Welcome Email Editor screen, then I click “update settings”, all of my changes disappear. How do I make the changes stick?

    • Sean says:

      Hey Wendy,

      Thanks for your comment. It seems to work for me. Maybe a conflicting plugin or it needs upgrading to the next version perhaps. Trying making a change to a single field and pressing update and see what happens. Or try another browser. I am testing in Chrome with no issues.

      ta
      S

  18. geraldine says:

    Hello,

    The Welcome Email Settings (User Email Subject, and User Email Body) I’ve customized doesn’t seem to work on the users but when I sent that “Test Emails” button, I can see the customizations I’ve made. That’s the only problem I have.

    Regards,
    Geraldine

    • Sean says:

      Hi Geraldine. It sounds like another plugin is getting there first and causing my code to not function as intended. Rename the plugin folder using FTP to awelcome-email-editor. Prefix the existing name with an A to hopefully bring it up the load order a bit. If my plugin is called before any other then it’s likely to function again.

      ta
      S

  19. gotodr3w says:

    Hello Sean, and many thanks for this great plug-in. I spent some time playing with it, and love it, as it will help me accomplish some of my crazy idea/needs.

    The two questions I have, please:

    1) If I use the Password Reminder Service Settings on the users page, to send a reminder to a user of their password, then I’ve been getting also the Welcome Email Admin.

    I was under the impression that I would only get the Welcome Email Admin, ONCE, when the user really signed up. Not again, if I send them the password reminder…

    Does that make sense? Did I do something wrong, or mis-understood the functionality?

    Can I change something somewhere, so this does not happen going forward?

    2) User Forgot Password Email Settings: Ok, I love that on the Forgot Password Message I can add the [reset_url].

    My question here is: can I use the [reset_url] for User Email Body as well?

    (I wanted to have the users pick and choose their own password rather than get random passwords… but via the link…)

    dunno if it makes sense for you but it does for me.

    Well, thanks in advance for one or two answers and thanks for sharing this great plugin.

    GotoDr3w

    • Sean says:

      Hi GotoDr3w,

      Thanks for the feedback. Not entirely sure what you mean by your first question. The answer to the second is that yes you should be able to use the reset url in the body of the email too.

      thanks
      Sean

  20. Hi Sean,

    I would like to use your well credited plugin, but noticd that it is not tested with WordPress version 3.4.2.

    Not that clever on wordpress so forgive my ignorance if this is no issue. Thanks in advance.

    Chris:)

  21. george says:

    Sorry for the stupid question but i can’t locate the Password Reminder Service Settings on the users page.
    Where is it?
    I even tried enabling and disabling the option in plugin settings page but i still can’t locate it and still feel stupid.
    Can someone help?

    • Sean says:

      Password reminder service is firstly an option to turn on and off within the welcome email editor settings page. Then, once on, it will start logging passwords when people sign up or change their passwords. Then for those users in the main user list in wp-admin you can hover over the names and where it might say edit and delete you will also see an option to do with the password reminder.

      Hope this helps

      ta
      S

  22. EOD says:

    Hey Sean!
    Love the plugin – but when I installed this there were already 40-50 subscribers on the website which is a private blog. So I thought if I make the *Reminder Email* the same as the *New User* temporarily then I can click each profile and life would be good. However for the button to send *Reminder Email* is not showing up. Is it because my personal admin account did not create that user or is it because the plugin does not like me?

    I really hope its not the latter. lol

    • Sean says:

      Hi EOD,

      Actually it’s neither. The reminder email only works when a user has signed up OR they have changed their password AFTER the plugin has been added. This is because the password needs to be captured and stored against the user in a recoverable format so I designed it to not show the reminder button unless a password had been stored.

      thanks
      Sean

  23. JL says:

    How do I push the current email to a user? I don’t see the option in admin or users. Thank you so much for your time, this app is incredibly well thought out. If I had your skills I would have made it exactly the same.

  24. JD says:

    Hi Sean,

    I’m having a problem with the “Remind PW” option on the user’s page. The option works fine until the password is changed. I mean once the password is changed for a user and the “Remind PW” option is used then it still sends the email with the old password..! Is there any work-around for that? Thanks in Advance.

    • Sean says:

      This feature has been removed at the request of WP. It’s not secure in the way it stored the passwords so needed to be removed. Sadly the functionality won’t now work.

      thanks
      Sean

Trackbacks /
Pingbacks

Leave a Reply