Topic: sendmail: Custom Return-path
Hello,
I am having troubles with sendmail, sending mail outside my own domain name which is hosted on an external webhost.
If I try to register a new member, the forum says the email was sent, but the mail never arrives. I do get a mail that a new member registered, but that address belongs to the same domain as where the forum software is installed on.
When I contacted my webhost asking him if it could be possible that sendmail was blocked in some sort of way, he responded no, it should be working. Quote: "The usual reason this doesn't work is that the mail headers are being showing as spam". To make it even more interesting, he told me he was running a forum of his own on the same server using sendmail.
He asked me to forward the mail that I did get to compare it with one of his own mails. He examined the source and told me that he thinks it needs a better return-path.
my email address at the forums is: forum@digitalx.org
the return-path is: nobody@mars.multiwebspace.com (where multiwebspace.com is my webspace provider)
his return-path is: admin@csscreator.com
I tried to change line 86 in email.php to put in my custom return-path but with my limited php skills I failed so far (if changing line 86 is enough at all). This is what I did:
$headers = 'From: '.$from.$eol.'Return-path: forum@digitalx.org'.$eol.'Date: '.date('r').$eol.'MIME-Version: 1.0'.$eol.'Content-transfer-encoding: 8bit'.$eol.'Content-type: text/plain; charset='.$lang_common['lang_encoding'].$eol.'X-Mailer: PunBB Mailer';
This is the original:
$headers = 'From: '.$from.$eol.'Date: '.date('r').$eol.'MIME-Version: 1.0'.$eol.'Content-transfer-encoding: 8bit'.$eol.'Content-type: text/plain; charset='.$lang_common['lang_encoding'].$eol.'X-Mailer: PunBB Mailer';
I would really like to try if customizing my return-path is enough to fix my problems with sendmail. Any help is kindly appreciated, as I have been trying to get sendmail running for the last 3 days now.