WordPress.org

Support

Support » Plugins and Hacks » Email Users » [Resolved] [Plugin: Email Users] Emails say they are from "admin" can this be changed?

[Resolved] [Plugin: Email Users] Emails say they are from "admin" can this be changed?

Viewing 13 replies - 1 through 13 (of 13 total)
  • —————————————————–
    Changes to email-users/email_users_user_mail_form.php
    —————————————————–

    FROM:

    get_currentuserinfo();
    $from_name = $user_identity;
    $from_address = $user_email;

    TO:

    get_currentuserinfo();
    $from_name = ‘THE NAME YOU REQUIRE’;
    $from_address = ‘THE EMAIL ADDRESS YOU REQUIRE’;

    ——————————————————-

    Plugin Author Mike Walsh

    @mpwalsh8

    Email messages are sent based on the user who is logged in. If you don’t want it to come from the Admin user, create another user with the appropriate name and send email from that user account.

    I made the above code change, but the emails are still going out from the logged in user account.
    get_currentuserinfo();

    $from_name = ‘NAME’;
    $from_address = ’email@domain.com’;?>

    I updated to version 4.3.4 before making the code changes.

    Plugin Author Mike Walsh

    @mpwalsh8

    By design the email header will be constructed based on the logged in user. Instead of modifying the code – can you create another user with the name and email address you want to send from and send the message when logged in as that user?

    The code changes recommended above in this thread will only affect Mass Email. If you also want to affect Post or Page Notifications, you’d have to modify other files. As I noted above, this really isn’t recommended.

    Unfortunataly, that is not a good option. We have 6 reporters posting content to the site, each with a separate login. We need this to track who is posting content (or not). All need to be able to send a post as breaking news to a mailing list. The sender needs to be the one recognized by the mailing list and one that the recipients recognize from their registration.

    Plugin Author Mike Walsh

    @mpwalsh8

    If I understand you correctly what you want to do is have a setting for the plugin where you can override the default behavior with different values for the FROM email address and the FROM name. Is that correct?

    Yes, that is correct. I want the FROM Email and FROM name to be the same, no matter who sends the post via email.

    Mike,
    Just saw the updated version. It does just what I need. Just sent a donation via PayPal (from my business account).
    Thanks for the quick solution.

    Just ran into an issue with the latest update.
    With it activated, we cannot edit any pages.
    It doesn’t impact posts, only pages.
    We are using WordPress 3.3.1.

    Plugin Author Mike Walsh

    @mpwalsh8

    Are you running from the trunk version? I’ve been working on it today and it has the feature you’re looking for but I haven’t tagged it yet so it shouldn’t appear as an update yet.

    I don’t know what a trunk version is. I did an auto update and that is the version I installed. It is 4.3.5. Thanks.

    Plugin Author Mike Walsh

    @mpwalsh8

    If you want to test the version that I am working on right now, you can download it here. It has the address override feature you were looking for.

    Plugin Author Mike Walsh

    @mpwalsh8

    You can now do this in 4.3.6. Read the release notes to understand how it works.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] [Plugin: Email Users] Emails say they are from "admin" can this be changed?’ is closed to new replies.
Skip to toolbar