Title: al_gorithm's Replies | WordPress.org

---

# al_gorithm

  [  ](https://wordpress.org/support/users/al_gorithm/)

 *   [Profile](https://wordpress.org/support/users/al_gorithm/)
 *   [Topics Started](https://wordpress.org/support/users/al_gorithm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/al_gorithm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/al_gorithm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/al_gorithm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/al_gorithm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/al_gorithm/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How does WP send the user registration email?](https://wordpress.org/support/topic/how-does-wp-send-the-user-registration-email/)
 *  [al_gorithm](https://wordpress.org/support/users/al_gorithm/)
 * (@al_gorithm)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/how-does-wp-send-the-user-registration-email/page/2/#post-154561)
 * Macmanx,
 * Thanks for your help, but that codex only references this thread anyway, and 
   I’ve read through all the solutions and tried them with no changes. I don’t have
   root access and I can’t install any new phpmail scripts on the server, so I can’t
   try a different method. Please advise if using Brinkster’s current phpmailer,
   I can use wordpress at all.
 * Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How does WP send the user registration email?](https://wordpress.org/support/topic/how-does-wp-send-the-user-registration-email/)
 *  [al_gorithm](https://wordpress.org/support/users/al_gorithm/)
 * (@al_gorithm)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/how-does-wp-send-the-user-registration-email/page/2/#post-154559)
 * I’m having the same problem as the first poster. Here’s the story:
 * 1. Installation successful, I can login as admin. When I create test users and
   the registration e-mail is supposed to be sent, it never arrives.
 * 2. Troubleshooting included updating the functions.php file to fix the known 
   issues. A snippet of my functions.php file is below:
 * ‘function wp_mail($to, $subject, $message, $headers = ”) {
    if( $headers == ”){
   $headers = “MIME-Version: 1.0\n” . “From: ” . get_settings(‘admin_email’) . “\
   n” . “Content-Type: text/plain; charset=\”” . get_settings(‘blog_charset’) . “\”\
   n”; } return [@mail](https://wordpress.org/support/users/mail/)($to, $subject,
   $message, $headers); }’
 * This gets rid of the $more argument, which apparently farts when it tries to 
   execute. And it also references the ‘admin_email’ on my host, which does exist
   as [admin@mydomain.com](https://wordpress.org/support/users/al_gorithm/replies/admin@mydomain.com?output_format=md).(
   This was to fix the problem of having a [nobody@mydomain.com](https://wordpress.org/support/users/al_gorithm/replies/nobody@mydomain.com?output_format=md)
   sending out mail from the php file, which most hosts don’t allow)
 * And yet, the problem persists.
 * So, I ran the test phpmail script on my hosts’s site to make sure the default
   phpmail works, the code for this is below:
 * ‘<?
 * require(“c:\php\includes\class.phpmailer.php”);
 * $mail = new PHPMailer();
 * $mail->IsSMTP();
 * $mail->Host = “mail.brinkster.com”;
 * $mail->SMTPAuth = true;
 * $mail->Username = “you@domain.com”;
 * $mail->Password = “EmailPassword”;
 * $mail->From = “you@domain.com”;
 * $mail->FromName = “Your Name”;
 * $mail->AddAddress(“user@domain.com”);
 * $mail->IsHTML(true);
 * $mail->Subject = “Test message sent using the PHPMailer component”;
 * $mail->Body = “This is a test message.”;
 * $mail->Send()
 * ?>’
 * I updated all the fields and this works like a charm. My thinking is that somehow
   I need to integrate the code from the default phpmailer ($mail??) into the code
   in the functions.php.
 * I am not even a coder of php, I just have been following the troubleshooting 
   instructions, but to no avail. Any help would be much appreciated.
 * [edit] Also, I’ve created a php info file, but there’s no sendmail path. I don’t
   have root access, so it doesn’t matter anyway. Also, Brinkster runs windows servers[/
   edit]
 * [edit2] I switched my e-mail in both users and options in the admin section of
   the wp control panel to [admin@mydomain.com](https://wordpress.org/support/users/al_gorithm/replies/admin@mydomain.com?output_format=md),
   so no problems there [/edit2]

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