email with 1.6.19 and PHP 8.0.17 email with 1.6.19 and PHP 8.0.17
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

email with 1.6.19 and PHP 8.0.17

Started by artman1913, August 31, 2022, 04:11:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

artman1913


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


ron4mac

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.

artman1913

Yes it is

YABB and my PHP code sends fine

ron4mac

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.

artman1913

Hmm settings look to be good
Guess I will dig in and see what I can find

artman1913

FYI
YABB uses that same email address to send stuff and it goes though.

artman1913

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.

artman1913

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

artman1913

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

artman1913

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.

artman1913

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.