zennedOut
- Join Date:
- Nov 2005
- Location:
- los angeles
- Posts:
- 2,954
- Plugin Contributions:
- 8
contact_us page error...
i have been getting an error on the contact_us page. we use smtpauth, due to the reputation of the shared webserver resulted in many emails getting bounced back to us.
while smtpauth has worked fine, our host has a policy as such:
"Sender domain policy exists to ensure email that is sent from your website is legitimate. This policy requires two things:
You must use a FROM address that’s on the same website you’re sending email from
The email must be hosted with us...."
so even though we authenticated with a valid email account, these policies prevented the contact_us page from working and generated error logs pointing us to the aforementioned statement.
to counter this problem, i changed includes/modules/pages/contact_us/header_php.php accordingly:
//old
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
//new
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $send_to_email, $html_msg,'contact_us', '', $name, $email_address);
i am not sure if it is worth addressing in the base code or not; hosts are notoriously fickle in their various email policies.
best.