WordPress.org

Forums

[closed] Skip Confirmation Email Problem on wordpress multisite (16 posts)

  1. Srikanth Pulluru
    Member
    Posted 1 year ago #

    Hi,

    I am using wordpress multisite & Buddypress, when creating user from dashboard user is getting conformation mail, by clicking Skip Confirmation Email also users are getting conformation mail.

    i dont need to send any conformation emails to user, i need to stop going emails to users

    how to stop this one. i will be glad if you assist me how to do this
    Thankyou.

  2. Have you asked in BuddyPress?

  3. Srikanth Pulluru
    Member
    Posted 1 year ago #

    Thanks for quick replay
    from wordpress i cant add user without conformation mail users receiving conformation mail i will be glad if you help me how to stop this conformation mails

  4. Does this happen when BuddyPress is off?

    If the answer is "no" then you need to pose this question at buddypress.org

  5. Srikanth Pulluru
    Member
    Posted 1 year ago #

    Thankyou Ipstenu,

    I deactivated buddypress plugin still facing the same problem. users getting conformation mail.

  6. jkhongusc
    Member
    Posted 1 year ago #

    A user is always sent a "confirmation" email in WP - depends on how you define "confirmation". There is no way around it that I have found, outside of modifying core code. This is what WordPress multisite does when you create a new user.

    Create user:
    1) http://mysite.domain.com/wp-admin/user-new.php
    2) Enter username, email, role, and checkbox for "Skip Confirmation Email"
    3) click "Add New User" button

    This is what happens with "Skip Confirmation Email" unchecked:
    1) User is sent an "Activate" account email - the user needs to click the link inside to activate their WP account.
    2) User clicks the activate account link
    3) User is sent a "New User" email
    4) Site admin is sent a "New User Registration" email

    This is what happens with "Skip Confirmation Email" checked:
    0) With the box checked the user account is automatically registered.
    1) User is sent a "New User" email

    "Skip Confirmation Email":
    UNCHECKED - user gets 2 emails, site admin gets 1 email
    CHECKED - user gets 1 email

    We didnt want any emails being sent to users or site admin. Unfortunately we couldnt find a plugin method to disable the emails; so we had to make a change to a core file to do so.

  7. Srikanth Pulluru
    Member
    Posted 1 year ago #

    Thanks jkhongusc for your detail Explanation,

    may i know which core file i need to edit, and which code i should replace or delete?

  8. jkhongusc
    Member
    Posted 1 year ago #

    Moderator note: We NEVER suggest anyone edit core files. It's a bad habit to get in to. Continue reading this thread to see how to use filters to achieve this. No hacks needed.

    When we create users we make sure "Skip Confirmation Email" box is checked. We modified this core file to remove the "New User" email which is usually sent to the user. Note that every time you upgrade WP, you need to manually edit the file.

    /wp-includes/ms-functions.php (around line #1265)

    function wpmu_welcome_user_notification($user_id, $password, $meta = '') {
    return false; // disable email notification

    I added the 'return false;' line.

  9. Srikanth Pulluru
    Member
    Posted 1 year ago #

    thanks jkhongusc

    i applied the above steps it works fine, but users are getting active your account mail, now i want to disable it only when i add user manually i will be glad if you help me to solve this issue.

  10. jkhongusc
    Member
    Posted 1 year ago #

    > i applied the above steps it works fine, but users are getting active your account mail, now i want to disable it only when i add user manually i will be glad if you help me to solve this issue.

    Make sure "Skip Confirmation Email" box is checked when you create users. That will activate the user's account automatically and not send an "activate" email. You cannot bypass this unless you write your own "add user" plugin.

  11. Srikanth Pulluru
    Member
    Posted 1 year ago #

    Thanks buddy it's working now no mails are going to users after changing the above code + Deactivating the Buddypress

    I followed your step and when i Deactivated Buddypress plugin no confirmation mails, active your account mails are not going to users

  12. DO NOT EDIT CORE FILES EVER FOR ANY REASON UNLESS YOU ARE ACTIVELY DEVELOPING WP CORE!!!!!

    Yes, I'm shouting at you.

    Yes, you are doing a TERRIBLE THING telling people to edit core.

    STOP.

    Okay?

    We didnt want any emails being sent to users or site admin. Unfortunately we couldnt find a plugin method to disable the emails; so we had to make a change to a core file to do so.

    Read this: http://danielbachhuber.com/2011/02/15/disable-new-site-creation-email-notifications-for-wordpress-multisite/

    You can filter all those emails.

  13. jkhongusc
    Member
    Posted 1 year ago #

    Mika -
    Could you delete my offending post?

    I thought I had tried that - http://danielbachhuber.com/2011/02/15/disable-new-site-creation-email-notifications-for-wordpress-multisite/ And it didnt work, but I think I know the reason why.

  14. I want to leave it because of the good parts of it. You're doing a fantastic job showing people how to put in break points to troubleshoot. I'll put up a warning in it, though.

  15. manakuke
    Member
    Posted 1 year ago #

    I need to enable individual site admins the ability to select the Skip Confirmation Email. We use WordPress multisite as a CMS at an University. Authentication and users are controlled via CAS. Anyways, I'm stuck at creating a plugin that would allow this. I think I have what I need to bypass the actual email, but don't know what function to tap into in order to create a new filter to enable this feature beyond super admins.

    I know this feature may be in the works as part of the core (down the line), but I need a solution sooner than later and, as noted, I don't want to edit the core.

    I would appreciate any help.

  16. jkhongusc
    Member
    Posted 1 year ago #

    manakuke -
    You should be creating your own thread. I am positive your requirements and your system setup is different than the OP.

Topic Closed

This topic has been closed to new replies.

About this Topic