• Resolved seobhd

    (@seobhd)


    So I have a problem.

    I think I have followed all the steps to edit the contact form but still I have a problem.

    So I need to change the sender’s name from “Easy WP” to my business name and also I want to change that people see my email that I want them to see not that random email that I didn’t even create “[email protected]”.

    Here is the picture of the explanation I want to change – Picture link

    • This topic was modified 3 years, 9 months ago by seobhd.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @seobhd,

    Try using this code snippet to override those default values to your custom own values:

    // Function to change email address
    add_filter( 'wp_mail_from', 'wpcf7_sender_email' );
    function wpcf7_sender_email( $original_email_address ) {
        return '[email protected]'; // Put your email here
    }
     
    // Function to change sender name
    add_filter( 'wp_mail_from_name', 'wpcf7_sender_name' );
    function wpcf7_sender_name( $original_email_from ) {
        return 'John Doe'; // Put your name here
    }

    You can add it in your child theme functions.php file or in a custom plugin.

    Best regards,
    Yordan.

    Thread Starter seobhd

    (@seobhd)

    Hey!

    Oh thanks, this worked like a charm! Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sender Email And Name Not Changing’ is closed to new replies.