WordPress.org

Ready to get started?Download WordPress

Forums

Email Users
[resolved] Emails say they are from "admin" can this be changed? (14 posts)

  1. luxsub
    Member
    Posted 2 years ago #

    I'd prefer to have it say "GuideToStart.com" or something like that. "Admin" seems like it could be spam if my members don't know that the email is from our site.

    Thank you!

    http://wordpress.org/extend/plugins/email-users/

  2. danielnichols
    Member
    Posted 2 years ago #

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

    -------------------------------------------------------

  3. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. hcnews
    Member
    Posted 1 year ago #

    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.

  5. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. hcnews
    Member
    Posted 1 year ago #

    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.

  7. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  8. hcnews
    Member
    Posted 1 year ago #

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

  9. hcnews
    Member
    Posted 1 year ago #

    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.

  10. hcnews
    Member
    Posted 1 year ago #

    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.

  11. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  12. hcnews
    Member
    Posted 1 year ago #

    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.

  13. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  14. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic