Support » Plugins and Hacks » Edit Flow » [Resolved] [Plugin: Edit Flow] Notification Set Up Bug

[Resolved] [Plugin: Edit Flow] Notification Set Up Bug

  • First of all, congratulations on an incredible plugin.

    The one error I found (and maybe I’m just missing something in the settings), is that for some reason all the notifications send from your plugin come from “wordpress@mydomain.com” (mydomain = the domain the plugin is on) – as such none of the notifications are ever delivered to recipients because they are viewed as SPAM by most email providers.

    This is strange, because most plugins simply use the email address that is set in the General Settings page in WordPress to send email.

    Is there any reason why your plugin doesn’t use the General Settings email and instead uses “wordpress@mydomain.com”? Is there a way to change this?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Also, forgot to mention that the from name is also set to: WordPress

    So the emails from notifications come from:
    Wordress <wordpress@mydomain.com>

    This is quite strange behavior, as I noticed that in notifications.php you use wp_mail() to send out your email. If so, why isn’t the From information for the emails being taken from the General Settings, which have the Site Title (to be used as From name) and email address (to be used as From email)?

    Sorry, I think I’ll answer my own question here, in case anyone else runs into this problem.

    For the plugin developers: perhaps this is an issue with wp_mail() and not the plugin per se, but still I think most other plugins will include code that has the from email from the General settings, or they allow you to change this in the plugin admin settings.

    To change the functionality of the From Name and From Email for notifications, simply add the filters below to your functions.php, replacing myemail and myname as appropriate:

    add_filter( ‘wp_mail_from’, ‘my_mail_from’ );
    function my_mail_from( $email )
    return ‘myemail@mydomain.com’;

    add_filter( ‘wp_mail_from_name’, ‘my_mail_from_name’ );
    function my_mail_from_name( $name )
    return ‘My Name’;

    Plugin Author Daniel Bachhuber


    To clarify, email providers might also mark emails as spam if they’re sent from a different IP address than the domain is mapped to.

    Filtering the wp_mail() values is probably the best approach in this context. Nice work on figuring it out 🙂

    If I try to add anything like that to my functions.php, I get a server error. Any other ideas?

    Plugin Author Daniel Bachhuber


    What’s the server error you get? Can you debug it further? Here’s a quick intro

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Edit Flow] Notification Set Up Bug’ is closed to new replies.
Skip to toolbar