Hallo,
I want to change the contact form. If somebody sent a message I want that the “Send from” Address is changed to a custom Mailaddress. For this I choosed the code snipped:
function change_cf_from() {
return " (Email address hidden if logged out) ";
}
add_filter('avf_form_from', 'change_cf_from', 10);
But the confirmation Mail, for the Author, is send to the custom Address, not to the Mailaddress of the Author. So, how can I change the confirmation Mailaddress to the input field of the contact form, without changing the “Send From” Address?
Hey 2K_Kreativ_konzept,
Thank you for using Enfold.
What do you mean by “confirmation Mailaddress”? Is this the autoresponder email? If yes, try this: https://kriesi.at/support/topic/contact-form-confirmation-mail-not-sent-when-multiple-recipient/#post-586609
Best regards,
Ismael
Hey Islamel
thanks for you answer.
Yes I mean the autoresponder email. I tried the code from the link:
add_filter('avf_form_autoresponder_from', 'avia_change_autoresponder_from', 10, 3);
function avia_change_autoresponder_from($from, $new_post, $form_params){
$from = " (Email address hidden if logged out) ";
return $from;
}
But it didn´t work. Is there an option to change the “$from” part, that the contact form send the autoresponder mail to the users address instead of the unified “from” address from the admin?
Looking forward to hear from you.
Hi,
Yes, that’s possible. Please post the link to the actual contact page so that we can inspect the email field.
Related thread: https://kriesi.at/support/topic/contact-form-users-email-address-is-used-as-the-from-email/#post-450059
Best regards,
Ismael