The MU forums have moved to WordPress.org

Registration Emails not working (6 posts)

  1. waynedixon
    Member
    Posted 15 years ago #

    VHost: no
    Path: /blogs/
    Nothing in the Error logs, nor the Mail logs.
    No errors in the browser
    Site it self works, activation email is not working.

    WPMU Version 2.7
    No Plugins
    Server: Windows Server 2003 with Apache 2.2.10
    No Proxy Sever or caching
    Browser agnostic

    The site is currently behind a firewall pending approval, so I cannot provide a link.

    Here's what I've done thus far:

    I've checked the Email Logs, Error Logs and the like. Activation emails are not being received, regardless of domain used. Using a test mail() script works 100% of the time, so mail is working from the server.

    The email server is an exchange server, and the webserver is an allowed relay, so that's not the issue. I've run out of ideas as to where to look.

    Any other thoughts, any help would be greatly appreciated.

  2. jamescollins
    Member
    Posted 15 years ago #

    I've seen errors when trying to use an exchange server to send WPMU emails.

    Create a new file in wp-content/mu-plugins/ that contains the following:

    <?php
    
    add_action('admin_menu', 'testemail_menu');
    
    function testemail_menu()
    {
    	if (is_site_admin())
    	{
    		add_submenu_page('wpmu-admin.php', 'Test Email', 'Test Email', 10, 'testemail', 'testemail_page');
    	}
    }
    
    function testemail_page() {
    	error_reporting(E_ALL);
    	ini_set('display_errors', '1');
    
    	$result = wp_mail('you@yourdomain.com', 'test email from WPMU', 'This is a test');
    
    	if ($result) {
    		echo 'Email successfully sent.';
    	} else {
    		echo 'Error sending email.';
    	}
    
    }
    ?>

    And change you@yourdomain.com to a working email address.

    Then go to Site Admin -> Test Email, which will attempt to send an email to you using WPMU's built in wp_mail() function.

    Does the output say that the email was sent?

  3. waynedixon
    Member
    Posted 15 years ago #

    Nope, It says 'Error sending email.' I'll start poking around some more to see if I can determine the root cause. The goofy thing is that it didn't even give me any errors.

  4. waynedixon
    Member
    Posted 15 years ago #

    I have solved the problem by writing a custom mu-plugin to use SMTP instead of built-in PHP Mail, and all is working as expected.

    Thanks for the test code, it did actually come in useful.

  5. jamescollins
    Member
    Posted 15 years ago #

    Wayne, is your plugin using the phpmailer_init hook?

    Would you mind sharing the code?

    Thanks

  6. zanfardinom
    Member
    Posted 14 years ago #

    waynedixon,

    I am having the same problem for WPMU 2.7.1. If you create a new account no email confirmation is sent to the user. On my windows 2003 server in the php.ini file we have smtp = localhost...is that correct.

    Also, another issue I am having is when the user trys to create a new account and blog they get a blank white screen. No settings have changed.

    Any thoughts/suggestions?

    mz

About this Topic

  • Started 15 years ago by waynedixon
  • Latest reply from zanfardinom