PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Notification address is host's email

  1. Desmond
    Member

    I have a situation where our forms' notifications are coming through with a different email and name than what is set in the Notification To User section of the form.

    For example, the form lists:
    From Name: My Name
    From Email: me@myemail.com

    But the email comes from accountname#@boxXXX.bluehost.com

    Any thoughts on how to override this?

    Posted 11 years ago on Friday December 21, 2012 | Permalink
  2. Please try installing an SMTP plugin and configuring that. We normally recommend trying one of these:

    http://wordpress.org/extend/plugins/cimy-swift-smtp/
    http://wordpress.org/extend/plugins/wp-mail-smtp/
    http://wordpress.org/extend/plugins/configure-smtp/

    The email headers are being set by your host and their mail function. You can override that by installing an SMTP plugin and using a server you choose.

    Posted 11 years ago on Saturday December 22, 2012 | Permalink
  3. Anonymous
    Unregistered

    I found a solution for this, put this piece of code in the functions.php of your theme:

    [php]
    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');
    
    function new_mail_from($old) {
     return 'youremail@yourwebsite.com';
    }
    function new_mail_from_name($old) {
     return 'Your Site';
    }
    Posted 11 years ago on Thursday January 31, 2013 | Permalink
  4. Thanks for pointing that out. I did not know about those WordPress filters.

    Posted 11 years ago on Friday February 1, 2013 | Permalink