• Hello,

    I added a code in my custom functions.php file to disable email sending in admin if it’s new user registration.

    However, in the email logs, a blank data is being listed. Also, I get this email:

    You getting this message because an error detected while delivered your email.
    For the domain: https://napohouston.com
    The log to paste when you open a support issue:
    No body specified

    So I know that my code works but Postman SMTP is still sending it even if it’s blank.

    How can I disable it in the plugin side? Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you pate the custom code here?

    Thread Starter elimariaaaa

    (@elimariaaaa)

    if ( !function_exists( 'wp_new_user_notification' ) ) :
        function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
            return;
        }
    endif;

    The function overide looks OK.

    Can you go the plugin email log search for failed emails with the status “No body specified”
    Hover at the start of the row and click on “View”, what is the subject of this email?

    Thread Starter elimariaaaa

    (@elimariaaaa)

    The subject is blank.

    From:	NAPO Houston <[email protected]>
    Reply-To:	[email protected]
    Date:	2018-09-24 13:40:19
    Subject:	
    Delivery-URI:	smtp:none:none://127.0.0.1:25
    • This reply was modified 7 years, 7 months ago by elimariaaaa.

    How did you arrive at the conclusion the email is coming from the user registration without a subject?

    The problem you having that something is sending an email without a body (content) and from your last reply and doesn’t send a subject too.

    I doubt that a plugin is sending without a subject and a body,
    I would check the configuration on the Divi contact module, maybe something is blank there.

    Thread Starter elimariaaaa

    (@elimariaaaa)

    Because I was testing the user registration myself. When I added the custom code in my functions.php, [email protected] received the Postman SMTP error that there’s no body specified. If I disabled the added code and try to register again, I was able to receive the email with subject ‘New User Registration’.

    Try this code instead of the current code:
    remove_action( 'register_new_user', 'wp_send_new_user_notifications' );

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Disable New User Registration Email – admin’ is closed to new replies.