Support » Fixing WordPress » Resistration Email With Bluehost

  • I have the following email address entered in the settings page in WordPress:

    However, when a person registers for the site they get an email notification from:

    I contacted Bluehost support and they sent me back the following:

    WordPress may be trying to send from the address but not recognizing that it exists on the server or perhaps it has been mistyped in wordpress. Be sure that you have entered in the correct information inside WordPress. If you are still experiencing this problem I’d recommend contacting WordPress support for further troubleshooting as this is outside my realm of support.

    Any ideas what the problem is here?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Have you tested this email (sent and received emails from it) outside of WordPress?

    Yes, it works both ways.

    Try creating an email account called and setting your email address on wordpress as WordPress has some strange issues where the mail won’t work properly sometimes without it. Also, you may want to double-check that your admin email address is set properly in the database.

    This is the way Bluehost requires their headers to be:
    Examples of headers that should work would be:
    From: <>
    From: “name” <>

    Examples of headers that will NOT work:
    From: “”
    From: user @

    Alternative for PHP Users:
    – You can also modify which account should be used when sending out using the mail() function. Inside the local php.ini file, you will find a line of code that looks something like this (around line 601):

    sendmail_from =

    Be sure to uncomment this by deleting the ‘;’ before the directive. Also, the account you use must be a valid created account.

    There is also a plugin called wp-mail-smtp. You can install that and set it to send mail using smtp, then send mail from your email address. (Make sure that the email address set is actually created in your cPanel.) Check YES for the option to use smtp authentication. That should work, too.

    Try creating an email account called and setting your email address on wordpress as

    This did the trick.

    Thanks a lot!

    Try creating an email account called and setting your email address on wordpress as

    This did not work for me. Same problem as before.

    wp-mail-smtp is a partial solution. It changes the “sent from” address that is visible to email recipients. But if the recipient checks in the message headers, they will still see lots of bluehost references that I do not want them to see.

    Is there a good solid solution to this? I’ve seen several threads about this on different forums and they all end with the same partial solutions.

    There are several ways of fixing/working around this. Some are mentioned in some posts and others in different posts. Depending on the setup, plugin, or whatever may be involved, it seems people have different results or preferences.
    I will list a few of the common ways that have worked for me:

    First is to change the way WordPress generates the headers:

    1) You can modify wp-includes/class-phpmailer.php and change the following lines(around line875 if using WP 2.7):

    $result .= $this->AddrAppend(‘From’, $from);


    $result .= $this->AddrAppend(‘From’, $from);
    $result .= $this->AddrAppend(‘Envelope-from’, $from);

    That should fix the problem, though it won’t work for any plugins that don’t use class-phpmailer.php

    2) WordPress uses as the default email address. You can either create and use this address, or you can download the following plugin which allows you to alternate the wordpress@ address to anything you want (

    3) You can install a plugin like(but not limited to): and in the plug-in options tab set the options to:
    send mail using SMTP,
    send the mail using your new email address,
    fill in the SMTP host, username and password that your host gave you when you set up the new email address,
    YES, use smtp authentication. (Yes, I’m aware this method doesn’t actually change the headers, but most people don’t bother with them anyway)

    These are some common ways to fix the WordPress email woes. Hope it helps


    Suggestion #1 had zero effect.

    The wp-from-email plugin sort of fixed the problem, but seems to conflict with my MM Forms contact form. Emails from the contact form now all have my own email as sender, instead of the email address the user enters.

    Sending email using SMTP seems overkill. I think I’ve tried that in the past and that it caused all kinds of other problems.

    Any other ideas?


    EDIT: If Bluehost is very strict in their email header requirements:

    This is the way Bluehost requires their headers to be:
    Examples of headers that should work would be:
    From: <>
    From: “name” <>

    Does WordPress adhere to those requirements? Where in WP is the code that forms these headers?

    I haven’t played around with the scripts enough to be certain where/what all needs to be changed, however, I’d guess it would be in relation either to wp-includes/pluggable.php on or around lines 349-354, and/or in wp-includes/class-phpmailer.php around lines 71-82.

    There is also this trac report on the cause of the issue:

    bh_WP_fan, are you sure this is the same issue. The trac report talks about email notifications not arriving at all, “landing in dead.letter”.

    My emails arrive fine, with or without the plugins. I just have trouble getting the right From: line to show on the email.

    I am using a combination of the following plugins:

    HGK SMTP (
    Mail From (

    “Mail From” is the one to set the “reply to” email to replace the default to

    Using for WordPress 2.8.4


Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Resistration Email With Bluehost’ is closed to new replies.