WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Notification Set Up Bug (6 posts)

  1. osseonews
    Member
    Posted 2 years ago #

    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?

    http://wordpress.org/extend/plugins/edit-flow/

  2. osseonews
    Member
    Posted 2 years ago #

    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)?

  3. osseonews
    Member
    Posted 2 years ago #

    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';
    }

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    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 :)

  5. EFDisaster
    Member
    Posted 2 years ago #

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

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic