Support » Fixing WordPress » How to fix mail problem in bluehost hosting

  • meg@info

    (@megainfo)


    Hi,

    I want to share with you a solution for problem of mail in bluehost

    just add this code to your functions.php of your current theme :

    function my_mail_from( $email )
    {
        return 'no-replay@your-site.com';
    }
    add_filter( 'wp_mail_from', 'my_mail_from' );
    function my_mail_from_name( $name )
    {
        return 'Contact';
    }
    add_filter( 'wp_mail_from_name', 'my_mail_from_name' );

    change no-replay@your-site.com and Contact String

    That all!

    Thanks

  • The topic ‘How to fix mail problem in bluehost hosting’ is closed to new replies.