Form data eMail showing incorrect From Email and From Name
-
Hi,
I am using the elementor form to create a contact from.
And i have set: Action after Submit to Email
Now the problem is that the entries in From Email and From Name are somehow overwritten and showing my admin user email and my company name. Instead of what I defined in the From Email and From Name Settings:
I did solve the problem with this snippet:
// Function to change email address function wpb_sender_email( $original_email_address ) { return '[email protected]'; } // Function to change sender name function wpb_sender_name( $original_email_from ) { return 'Tim Smith'; } // Hooking up our functions to WordPress filters add_filter( 'wp_mail_from', 'wpb_sender_email' ); add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
But that means that the form settings of the elementor widget do not work properly.
What is happening? What does overwrite the default wordpress from email adress and name with a higher prriority than the elementor form widget?
Thanks
Sascha
The page I need help with: [log in to see the link]
- The topic ‘Form data eMail showing incorrect From Email and From Name’ is closed to new replies.