Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #244909

    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?

    #244987

    Hey!

    You can do it easily with this plugin.

    Regards,
    Josue

    #245102

    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.

    #245160

    Hey!

    Feel free to request it here https://kriesi.at/support/enfold-feature-requests/

    Best regards,
    Yigit

    #245209

    Will do.
    What tool is used for the ideas area?

    #245210

    Hi!

    It’s a custom plugin made by Kriesi.

    Regards,
    Josue

    #245213

    is this for sale?

    #245214

    It’s not, maybe you can find something similar in CodeCanyon.

    Regards,
    Josue

    #251496

    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;
    }
    
    #251609

    Hi!


    @niravmehta
    thanks for sharing!

    Cheers!
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Change the "from" email on a contact form.’ is closed to new replies.