Not getting emails that Coppermine is sending.
Can anybody with close to my versions verify that email is working ?
All the pages seem to display correctly but the emails don't seem to be going out
Verified the YABB and some of my PHP code is sending emails just fine.
Only thing I have run across is a case issue (m/M) and my understanding this does not matter
from include/mailer.inc.php
$mail = new cpg_PHPmailer();
class cpg_PHPMailer
Your Coppermine gallery is okay (as long as you didn't make changes to it). It will send mail once you have your server (is it hosted?) and PHP configured properly to send email.
Yes it is
YABB and my PHP code sends fine
Your host/server may also need to have CPG configured with an admin email address that is a valid user on the domain of your server.
Hmm settings look to be good
Guess I will dig in and see what I can find
FYI
YABB uses that same email address to send stuff and it goes though.
progress report
Looking at the headers of a email sent though YABB it look like the mail program the hosting company uses is https://www.exim.org/
Received: from XXXXX by justYYYY.justhost.com with local (Exim 4.95) (envelope-from <XXXXX@justYYYY.justhost.com>) id 1oTAqw-000xot-CI for artXXXX@gmail.com; Tue, 30 Aug 2022 17:41:06 -0600
I would assume it supports all the sendmail options so it should be transparent but you never know.
If I remove the headers when the php mail function is called it goes through no problem.
I will be digging in more to find a workaround but I don't see a need to update this anymore.
Thanks
Headers that would have been sent
Date: Thu, 1 Sep 2022 19:01:29 -0600
From: Titanium RV Owners Photo Gallery <jimoXXXXX@gmail.com>
Message-ID: <ac542bcd4e502e6d73a0f4865ed03e63@just2064.justhost.com>
X-Mailer: PHPMailer 5.2.21 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_ac542bcd4e502e6d73a0f4865ed03e63"
Content-Transfer-Encoding: 8bit
Found it
function I put it in and my fix
private function mailPassthru($to, $subject, $body, $header, $params)
{
$header=str_replace("\n","\r\n",$header);
So
Discussing with people if I am going to put this patch into production.
My concern is currently if coppermine gets updated any patch I put on will get removed.
ok I have a different workaround but I like it less
I changed to smtp auth
But if the mail server is to busy to respond it will fail.