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

98 comments

  1. Alvaro Degives-Mas says:

    It’s a terrific idea, and an excellent plugin. Thanks!

    Two things, hopefully not too complicated:

    - It has trouble dealing with the apostrophe sign, in plain text email (probably some stripslashes snafu) which is printed with a preceding backslash instead in the email.
    - I wonder if it’s possible to pick which to email (either user or admin) the extra headers go. Reason: I’d like to CC the notification that a new user has registered, but I decidedly don’t want the new user’s login info copied out to others… I.e. whether such a CC or BCC can be set to just the admin email alone, not the user email.

    Otherwise, wonderful plugin. Thanks a bunch!

  2. Alvaro Degives-Mas says:

    Sorry – a third observation: perhaps it’s a good idea to add a “Test this” button or link, which would trigger a single email shot (of both the user and admin emails) to the admin’s email address; arguably this could help debugging (not to mention, flagging spelling misztakes)

    • Sean says:

      Hi, thanks for the feedback and great suggestions. I shall make the changes ASAP and will reply to this comment when they are done. Probably do them towards the end of this week if I have time.

      thanks
      Sean

    • Sean says:

      Hi Rob,

      I’m afraid I don’t know off the top of my head. The tag x-msg isn’t added unless you added it as an additional header maybe. Try putting " instead of ” and see if it makes and difference. Otherwise maybe change the quote style from double to single?

      Cheers
      Sean

  3. jojo says:

    nice plugin! and easy to use with some html code…

    have at first tried to modify the pluggable php but haven´t had enough time to play with the mail notification code…

    and then i´ve found your plugin :-)

    • Sean says:

      Great stuff jojo, Glad you like it! I would never recommend ever editing any of the WP core code because on updating to a new version your changes will be lost.

      thanks
      Sean

  4. Mika says:

    Hi Sean,

    Thanks for the plugin, it’s really helpful. I did notice though that when the domain on the from email is different from the domain of the WP install that the emails go into spam folders because its not using the ‘sent on behalf of’ headers. This is a bit of a unique case, but in my implementation I have MU on one domain and a number of other domains also on the same install. Any thoughts?

    • Sean says:

      Hi Mika,

      Thanks for the feedback! You can use the additional headers section on the admin page to write in the sent on behalf of code if necessary. It seems like a nice easy way to do it I think. Let me know how you get on.

      thanks
      Sean

  5. eric says:

    great plugin… now
    what version WP is it compatible up to?

  6. Roy Schouten says:

    Hi Sean, I would like a logo to be displayed in the welcome mail, but i keep getting backslashes in the image url as the mail is received. They are not in the code itself.

    • Sean says:

      Hi Roy,

      Backslashing is obviously me forgetting somewhere to stripslashes from a database input. The simplest thing you can do I suppose is to use a different kind of slash which might work. Instead of ” you can use ‘. Otherwise maybe find the part of the code that sends the email out and run stripslashes() on it. I will update the code myself asap.

      thanks
      Sean

  7. I hope in a future version “translation ready” :)
    Not too future … :D

  8. don says:

    hi there.
    this plugin is exactly what i’m after but after installing it does not change the email y users receive when they register.
    i have created a new user as admin and sent the email and also set myself up manually as a new user but still the default email fires through.
    do you think i have missed something? – all activated and all setup

    • Sean says:

      Hi Don,

      Thanks for getting in touch. Firstly do you have any other plugins live on the site? Some plugins have their own version of this functionality and sometimes get in before my lugin has a chance to make any changes. Simplepress forum, I know, is one that does.

      Additionally when you say activated and setup, what do you mean? Have you made some changes to the default templates in the settings page for this plugin on your site? I am happy to look at your settings and try to diagnose it for you. Just email barton.sean@gmail.com with an admin login. Otherwise check those things for me and let me know.

      thanks
      Sean

  9. Helene says:

    Hi Sean,
    Many thanks for this plugin very usefull !
    I’m trying to insert an image as a header but unsuccessfully.
    Do you have a tip to do that ?

    Thanks.

    • Sean says:

      Hi Helene,

      Am happy to help. Do you want to post the HTML you have been using for me to fix? I would use for it. Make sure that the path to the image in the ‘src’ tag is absolute (ie accessable from anywhere, a complete URL) and it should work. If, for some reason, my plugin is breaking it then let me know and I shall sort it for you.

      thanks
      Sean

  10. Helene says:

    Sean,

    Here is the html i’m using :

    and here is what i get as header :
    \\r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=”iso-8859-1″

    Do you understand where i’m wrong ?

    Thanks for your help !

  11. Helene says:

    oups sorry, I forgot to paste my html !

  12. Gilbert says:

    Hi Sean.

    Your plugin does not change the email message on my site.

    I have read your post from February 1st, and I am concerned because I use SimplePress forum plugin.

    1. Is there anything to do (other than removing SimplePress plugin) so that I could also enjoy your plugin?
    2. I am not at all an expert in SimplePress plugin. Why does it have its own version of this functionality? I do not see I can change the login email in this plugin!

    Hoping you could help,
    Thank you in advance,
    Gilbert

    • Sean says:

      Hi Gilbert,

      A few plugins have this functionality. I imagine as forums email your users then they want you to be able to make changes to the email they receive. I think you could edit the priority setting of the simplepress version maybe or remove the code from their plugin. Sorry, I am in the alps at the moment if not I would do it for you. Ask again in a week or so

      thanks
      Sean

  13. jb says:

    hi Sean – I am very excited to find this plugin. It appears that I have an issue similar to Don’s above – the plugin is activated and I am running some simple tests, but none of the modifications seem to be sent. Everything stilI looks like the WordPress default.

    I have quite a few plugins installed; can you advise. Thanks, jb

    • Sean says:

      Hi Jb,

      Apologies for the delay in response, I have been away on holiday and only just got back. Regarding your comment… I would need to know what other plugins you have running to be able to tell if any of them are responsible for the lack of functionality in my plugin. Maybe you can send me a list to barton.sean@gmail.com or maybe an admin login so I can see your settings. I shall take a look as soon as I hear from you.

      thanks
      Sean

  14. Faydra says:

    Hi Sean,

    The plug in is working great…thanks! I don’t know how to change the name that the email is coming from. Right now, I have the correct return email address plugged in, but the name is says “WordPress”. I want it to say my blog name. What am I missing? Thanks for your help!

  15. Faydra says:

    Hi Sean,

    I did what you suggested, but it still isn’t working. I deleted the plugin & then reinstalled it, just to see if that would solve the problem. Any other suggestions? I’m getting frustrated, as I don’t want wordpress in the sender’s name. *sigh*

  16. Sean says:

    Hi Faydra, what other plugins are active on the site? Is simplepress forum one of them?

    thanks
    Sean

  17. Faydra says:

    Hi Sean,

    No, these are the plugins I’m using with the ClassiPress theme classified theme.

    Breadcrumb NavXT
    Daily Top 10 Posts
    Google XML Sitemaps
    IWG Hide Dashboard
    Role Manager
    SB Welcome Email Editor
    Sociable
    StatPress Reloaded
    User Photo
    WordPress Database Backup
    WP-EMail
    WP-PageNavi
    WP-Print
    WP125

    Thanks for your help!!

  18. Sean says:

    Hi Faydra. There is nothing in there that looks like it might conflict except wp-email so will look into that for you. Does the copy change ok or is it just the from address that doesn’t change?

    If you want to email me on barton.sean@gmail.com then we can hopefully get you sorted out.

    thanks
    Sean

  19. Jon says:

    Hi

    Right so because of various reasons and requirements for a site I am making I have had to use a number of different plugins to handle the login and registration process. The plugins involved are:

    Login With AJAX ++ > login widget that seemed to suit site needs best

    SB Welcome Email Editor > send customised User name and password emails

    Theme My Login > To enable login and registration to be contained on a page

    WP User Registration > to add anti spam and other fields to the user registration

    Now on the whole they all seem to be getting along. However when someone registers they receive 2 registration emails. One is in the format of SB Welcome Email Ed with and auto generated wordpress password and the other a text based email with the users own chosen password.

    Firstly how do I turn off the auto generation wordpress password and secondly how do I get WP User Registration to use SB Editor to send emails.

    Advice on this as soon as possible would be fantastic.

    Many Thanks
    jon

    • Sean says:

      Hi Jon, thanks for the interest! Firstly I would suggest you identify the offending plugin and turn it off temporarily. I suspect wp user registration. If turning one off solves it then let me know and I shall see if i can fix the other plugin for you. Want to email me at barton.sean@gmail.com and I can hopefully sort you out. Am out until this afternoon but happy to help when i return.

      thanks
      Sean

  20. iolo says:

    Hi Sean,

    Firts your plugin is working well, with my version 2.9.2 !
    So i did updated the plugin’s settings, made tests, but there were no modifications, my new users still getting wordpress welcome email !
    BTW simplepress forum plugin is not installed, WP email plugin too, but user messages plugin is active, so i did deactived it in order to avoid any conflicts against your plugin, unfortunetely new user welcome email still as it is !

    I really don’t know what i’m missing, hopefully your help

    Thanks in advance

    • Sean says:

      Hi, what other plugins do you have active on the site? If you want to email me directly at barton.sean@gmail.com then we can sort it out for you. Otherwise just deactivate everything and see if it works then. It’s always going to be a process of trial and error with plugins that do this particular job. The trick is to find the offending plugin and update the code without breaking it :)

      Let me know. Thanks!
      Sean

  21. Joseph Mok says:

    @Faydra

    Have you tried to edit the “From Email Address” field?

    You should enter “Your Blog Name ” in that field

  22. iolo says:

    Hi Sean,

    I did what you just told me, i have deactivated everything, except WP Email Editor plugin, but it didn’t work.

    I just sent you a list of the currently active plugins.

    Thanks in advance

    iolo

  23. Wonderful plugin. Helped a lot for a community website.

  24. dave says:

    Hey Sean,
    Killer plugin! Really cool. It is all working well in WP 3.0.

    There is only one thing that I seem to be unable to change.

    In my email (gmail) I see a green text “WordPress” at the top of the email that I have received after registering as a new user as a test. This should be saying something like “custom name to me”

    Screen grab of the green text
    http://screencast.com/t/MzhkYjk0

    Screen grab of my settings
    http://screencast.com/t/Y2I3NjczM

    NB: the custom name shows up correctly when I view the list of all my messages in gmail. It is only in the email itself that it is not correct.

    Any ideas?

    Thanks!
    Dave

    • Sean says:

      Hi Dave, sorry about the late reply. All my messages seem to be going into spam for some reason… The green text and ball means that the gmail chat user is online. I’m assuming it’s your own email address. Try changing the FROM email address to be something else and use the format “Name ” which should cause it to use the Name in place of WordPress. Failing that it could be my code… open up the plugin PHP file and replace all instances of wp_mail with mail instead. It should cause the headers to be sent differently.

      thanks
      Sean

Leave a Reply