Welcome Email Editor for Wordpress

April 20th, 2009 by Sean Leave a reply »

Something which regular readers might be aware of is that Wordpress has taken up most of my attention for the last year or so. It seems a very flexible Blogging engine come CMS that can almost deal with anything… almost. When you begin to use it you think wow great flashy AJAX everywhere but when you take a look at getting it work with a site you start to see where it’s downfalls lie. I am, however, not a Wordpress hater. In fact it’s the opposite, I love it! Wordpress really comes into it’s own with it’s fantastic plugin API. It means that anyone can write their own noddy (technical term :) ) bit of code and get it to do something in no time. Or so I thought…

One of the least customisable parts of Wordpress is the Login/Register process. The register page seems unmoveable without a bit of copy and pasting of the code and the email you get when you register is very dire indeed. There are no hooks for editing the welcome email text or Wordpress admin page for updating the from address or headers.

Well, as it stood I needed to be able to edit the welcome email and registration process for work so I went about writing a standalone registration system (to follow) and Welcome Email Editor. Unfortunately the copy/paste method was required for the registration widget but the Welcome Email Editor is done properly.

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..

Download Wordpress Welcome Email Editor (14.03 KB)

Admin Email Received

Admin Email Received

Admin Page for Plugin

Admin Page for Plugin

Email Received By User

Email Received By User

8 comments

  1. Dragon says:

    Great plugin. Pardon my ignorance but hot do you put in multiple recipients to receive new registration notifications?

  2. Sean says:

    I assume you mean for the admin email. I hadn’t added that part of code although it’s a good idea. I think I even wrote the code to be able to accept it but didn’t code it. Feel free to dive into the code and have a look. Failing that you can use the BCC: header and put the address in the additional headers box in settiings. That way it will send the email to the user but also the same email to that email address as a bcc. Not ideal I know but a start maybe? If you wanted something quick then edit the code to send another notifiction to a fixed address. Should be simple enough. Let me know if you are struggling and I shall point you in the right direction.

    thanks
    Sean

  3. Sean says:

    Sorry about that. I did reply but for some reason AKISMET assumed my comment was spam. I have approved my previous message. Hope this helps.

    thanks
    Sean

  4. Dragon says:

    Thanks so much for responding.

    Bummer. I was really looking for a plugin that supported multiple recipients. The ability to change the email itself was icing on the cake.

    Unfortunately I am not a PHP coder. Wouldn’t know where to begin. Any chance of adding this functionality

    Thanks again for your help.

  5. Dragon says:

    What would the code look like to add an addition header to BCC?

  6. Sean says:

    Literally add code according to the mail header format in the additional headers section…

    BCC: barton.sean@gmail.com

    if it fails then drop me an email to the above address and I can work with you to make it do exactly as you want. I am happy to help make life easier for you and others. Also if you are after any other plugins then let me know what they are and I shall see if I can help.

    thanks
    Sean

  7. Dragon says:

    THAT WORKED! My client is VERY happy now. Thanks again for your help.

Leave a Reply