Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #362634

    Hi,

    We use a SMTP mail relay and all “sending” email addresses or domains have to be registered with them. So using the current contact form within Enfold poses a problem as it sends the emails as the person requesting the contact. Where do I change this so that the “From” address is the site info address vs the requester email address. I will put our site email address in the From and the requester address in CC??

    Any help will be appreciated.

    Thanks
    J

    #363240

    Hi johanndm!

    I’m not really sure what’s going on from your problem description but you can see where we send the mail on line 721 in /enfold/framework/php/class-form-generator.php.

    wp_mail($send_to_mail, $subject, $message, $header);
    

    The wp_mail function uses PHP, http://codex.wordpress.org/Function_Reference/wp_mail, to send the mail.

    If you need to use SMTP then perhaps you can try using this plugin, https://wordpress.org/plugins/wp-smtp/, which switches the function to use SMTP.

    Best regards,
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
    #363380
    This reply has been marked as private.
    #363861

    Hi!

    Hmm, where are you seeing this at? Lines 709 – 711 should look like this.

    //$header  = 'MIME-Version: 1.0' . "\r\n";
    $header = 'Content-type: text/html; charset=utf-8' . "\r\n";
    $header = apply_filters("avf_form_mail_header", $header, $new_post, $this->form_params);
    

    Regards,
    Elliott

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