Can
Member
Hi there,
I'm using XenForo 2.3.7 on two forums with contact forms enabled:
– https://fenerbahceforum.com
– https://almancakulubu.com
My mail service is through Namecheap's Private Email (SMTP), which strictly requires the "From" and "envelope-from" headers to match the authenticated domain email address. Otherwise, it rejects the message with the following error:
554 5.7.1 <From> and <envelope-from> fields in the email headers don't match. Reason: JFE040011
In my XenForo admin panel, I have correctly set the "From" address to match the authenticated SMTP user (
However, XenForo’s contact form currently uses the visitor’s email as the "From" address, which causes Namecheap to reject the emails — even though the SMTP authentication and headers are otherwise valid.
Namecheap support confirmed that using the visitor’s email in the "Reply-To" field is the correct and allowed way. So I would like to configure XenForo’s contact form to send mail as:
– From: iletisim@fenerbahceforum.com (authenticated domain address)
– Reply-To: [visitor's email]
Is there a built-in way to achieve this in XF 2.3.7?
If not, is there a recommended way to override this behavior (e.g., via
Any guidance, code snippet, or recommended approach would be greatly appreciated.
Thank you in advance!
– Can
I'm using XenForo 2.3.7 on two forums with contact forms enabled:
– https://fenerbahceforum.com
– https://almancakulubu.com
My mail service is through Namecheap's Private Email (SMTP), which strictly requires the "From" and "envelope-from" headers to match the authenticated domain email address. Otherwise, it rejects the message with the following error:
554 5.7.1 <From> and <envelope-from> fields in the email headers don't match. Reason: JFE040011
In my XenForo admin panel, I have correctly set the "From" address to match the authenticated SMTP user (
iletisim@fenerbahceforum.com
, etc.).However, XenForo’s contact form currently uses the visitor’s email as the "From" address, which causes Namecheap to reject the emails — even though the SMTP authentication and headers are otherwise valid.
Namecheap support confirmed that using the visitor’s email in the "Reply-To" field is the correct and allowed way. So I would like to configure XenForo’s contact form to send mail as:
– From: iletisim@fenerbahceforum.com (authenticated domain address)
– Reply-To: [visitor's email]
Is there a built-in way to achieve this in XF 2.3.7?
If not, is there a recommended way to override this behavior (e.g., via
Misc.php
or by writing a small add-on)?Any guidance, code snippet, or recommended approach would be greatly appreciated.
Thank you in advance!
– Can