Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #599304

    Hi folks Im trying to configure my contact form and once I click on the send button no emails are sent if I dont make the functions.php tweak bellow, I’m using the WP-Mail-SMTP plugin, I can receive new orders emails, test emails, even the customer receive their invoices, order status changes, etc.

    The contact form was the only thing not working at all, so I tried to add the code in functions.php, as other have requested

    add_filter(‘avf_form_from’, ‘avia_change_from’, 10, 3);

    function avia_change_from($from,$new_post,$params){
    $from = (see private box A address );
    return $from;
    }

    And then in the form I emulate a customer so I enter another some real data, lets say
    Name: Test User, Email: (see private box B address), message: “testing contact form”

    Now when I click Send, I should receive one email and the customer have to receive a “we received your request” stile email message, but I receive both email messages in my “A” address, so the customer is not receiving its email.

    #599791

    Hi Cesar!

    Thank you for using our theme.

    Our theme is using the standard WP wp_mail function unless you use the filter avf_form_use_wpmail and return false (leads to using the default php mail function).

    Normally you do not need ‘avf_form_from’ filter unless you want to change from to a different value.

    Check your settings of the WP Mail SMTP plugin.

    Regards,
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.