-
AuthorPosts
-
September 1, 2017 at 2:43 pm #846871
Hello,
I’ve setup the contact form and it works fine except for Gmail addresses.
When the user has a gmail address, he get’s the auto-respond email but we don’t get the notification with his message.
As far as I understand, the issue is related to server security with the following error: “Sender domain not allowed. ”
Can we add the code so that email notifications are send from generic email like (Email address hidden if logged out) instead of user’s email address?
Best regards
September 1, 2017 at 4:48 pm #846911Hi,
function change_cf_from() { return " (Email address hidden if logged out) "; } add_filter('avf_form_from', 'change_cf_from', 10);
Pasting that into the functions.php will change the email sender to a generic wordpress one as you requested.
hope that helps a little
TJ
September 1, 2017 at 6:46 pm #846954Thanks for you input.
Now I’m getting notifications for users with gmail address but the auto-respond is sent to (Email address hidden if logged out) instead of user email :(
BTW just to confirm that I’ve tried adding a new user with gmail address and everything is working OK and user is getting an email notification to his email address from (Email address hidden if logged out)
Any idea? I’ve created an admin account so you can have a look if needed.
Best regards
September 2, 2017 at 10:06 am #847115Hi,
Thanks for the login details, though I’m getting a CloudFlare error when logging in. Not sure what that is about?
Best regards,
RikardSeptember 2, 2017 at 10:48 am #847128Hi,
I’ve disabled the CloudFlare so that shouldn’t be causing problems any more.
Br
September 4, 2017 at 11:48 am #847679Hello,
If there is no other solution, can we just put our email on bcc for auto-respond message and disable the notifications? That way users will get the auto-respond and we can see the necessary info…
Best regards
September 5, 2017 at 10:24 pm #848346Hi,
Please check the following functions
// Function to change email address function wpb_sender_email( $original_email_address ) { return (Email address hidden if logged out) '; } // 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' );
most probably they solve those issues.
Best regards,
BasilisSeptember 6, 2017 at 10:49 am #848529thank you
September 7, 2017 at 10:11 pm #849282Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Basilis -
AuthorPosts
- The topic ‘Contact form and Gmail’ is closed to new replies.