WordPress.org

Forums

How to fix mail problem in bluehost hosting (1 post)

  1. meg@info
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic