Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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

    #846911

    Hi,

    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

    #846954

    Thanks 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

    #847115

    Hi,

    Thanks for the login details, though I’m getting a CloudFlare error when logging in. Not sure what that is about?

    Best regards,
    Rikard

    #847128

    Hi,

    I’ve disabled the CloudFlare so that shouldn’t be causing problems any more.

    Br

    #847679

    Hello,

    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

    #848346

    Hi,

    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,
    Basilis

    #848529

    thank you

    #849282

    Hi,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Contact form and Gmail’ is closed to new replies.