Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #382148

    Hey,

    I would like to put a fixed sender email adress on contact form, and put the specified email in the form on the reply-to.
    Is it possible ?

    Explications : with our SPAM protection, mails sent without an adress of our domain goes in SPAM.
    If a customer want to contact us, the mail will go in SPAM.

    Thanks!

    • This topic was modified 9 years, 10 months ago by alexispereira.
    #382183

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function change_cf_from() {
    	return " (Email address hidden if logged out) ";
    }
    add_filter('avf_form_from', 'change_cf_from', 10);

    Cheers!
    Josue

    #382362

    Thanks a lot but it doesn’t work!

    #382674

    Hi,

    Can you please create me a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #387437

    Can you please post a solution to this problem? I have the same issue. Thanks!

    #387460

    Hey!

    Did you already try this?

    function change_cf_from() {
    	return " (Email address hidden if logged out) ";
    }
    add_filter('avf_form_from', 'change_cf_from', 10);

    Best regards,
    Josue

    #387516

    It worked, thanks! Gmail still thought the created address was spam, even after I added it to contacts. Had to create a filter in order to get it to show up in my inbox. But it works like I want it to. Thanks again!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change sender email (contact form)’ is closed to new replies.