Tagged: CONTACT FORM, devin-docs, email
I want to change the “from” email to no-reply@<my domain>.com so it does not end up in spam filters for the two admins.
How can I do this?
Yes, I see that.
I’d like to just use the contact form from the theme.
Any possibility that is feature could could be added in the future?
This is only feature that I see is missing.
Hey!
Feel free to request it here https://kriesi.at/support/enfold-feature-requests/
Best regards,
Yigit
Will do.
What tool is used for the ideas area?
Hi!
It’s a custom plugin made by Kriesi.
Regards,
Josue
is this for sale?
It’s not, maybe you can find something similar in CodeCanyon.
Regards,
Josue
Here are two functions that will pick up from email and subject from what the user entered – you can change them to suit your needs. Put them in your functions.php.
// Avia Contact Form related functions
add_filter('avf_form_from', 'avia_change_from', 10, 3);
function avia_change_from($from, $new_post, $params){
if (!empty($new_post['e-mail'])) {
$from = urldecode($new_post['e-mail']);
}
return $from;
}
add_filter('avf_form_subject', 'avia_change_subject', 10, 3);
function avia_change_subject($subject, $new_post, $params){
if (!empty($new_post['subject'])) {
$subject = urldecode($new_post['subject']);
}
return $subject;
}