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
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
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