1. samhotchkiss

    These plugins are great as long as you’re sure that everything you’re using is sending mail through wp_mail. Not all developers are equally strong on doing things the WordPress way.

    A piece of advice? Before you start working on a dev server that has user accounts on it, change all of your users email via MySQL using something like:

    update wp_users set user_email = CONCAT(“sam+”, ID, “@getparka.com”);

    That way, even if everything gets screwed up, your dev site CANT email your users because it doesn’t know who they are.


    • Sal Ferrarello

      Great point samhotchkiss. I’m the author of the Stop Emails plugin and this is definitely a limitation. I hadn’t thought about changing the users’ email addresses. I like this idea but would like to be able to revert back to the original addresses. I wonder if a filter to modify the email address could create the same behavior you’ve outlined above.


      • samhotchkiss

        Hey Sal– what if you just stored the users “real” emails in the user meta? So you iterate through, swap out their real emails for the fakes, add the real emails as user meta, then when the user wants to “restore” their emails, you go back through and reverse the process?


        • Sal Ferarello

          I like this idea, samhotchkiss. I think to put it in place, it would make sense to do an Ajax call to iterate through the users to avoid a problem with timing out. However, for me personally I’m not sure it is worth the additional complexity as the plugin is solving the problem I had. Of course, if someone else wants to write that code I’m always happy to accept a pull request on the GitHub repo https://github.com/salcode/stop-emails or use another plugin if someone builds a better one.

          I did look for a filter that would allow me to programmatically modify the email address when it loads but I didn’t spot a good place to hook in to get this behavior. To me this would have been an ideal behavior, “changing” the email addresses without iterating through all the users.

          Thanks for all the thought provoking comments.


    • Sarah Gooding

      samhotchkiss – That is a nice tip! Never thought of that option before :)


  2. John Saddington (@saddington)

    *smacks forehead* … i dont’ know why i’ve never done this myself. great solutions.


  3. Barnabas Adedoyin

    Love this article. Does it work with buddypress? I had to go to the core filter.php to edit my community user activation email after spending hours toggling it.


  4. Ryan

    This is indeed.

    If someone mark your email as spam then your web hosting can ban your account.


Comments are closed.

%d bloggers like this: