Problem with mail Problem with mail
 

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

Problem with mail

Started by dgitan, February 13, 2009, 03:37:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dgitan

I have a real big problem....
I install the new version of CPG without any trouble . All works perfectly execpt the mail function.
I try everything ( sendmail, mail , SMTP , gmail as SMTP ) and nothing work.
I receive all the time the message ( with SMTP ) : SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
with mail or sendmail no error message, but I receive nothing.

I check my hosting server with this code :

############### Code

<?

// ---------------- SEND MAIL FORM ----------------

// send e-mail to ...
$to="fake@mail.ch";

// Your subject
$subject="Test";

// From
$header="from: christophe <fake@mail.com>";

// Your message
$message="Hello \r\n";
$message.="This is test\r\n";
$message.="Test again ";

// send email
$sentmail = mail($to,$subject,$message,$header);

// if your email succesfully sent
if($sentmail){
echo "Email Has Been Sent .";
}
else {
echo "Cannot Send Email ";
}

?>


And this code works.

Maybe you can help me, I hope

Hein Traag

#1
And you waited 3 minutes before quoting yourself?? Grow some patience.

** Deleted obsolete second post and edited email adres for user.

dgitan

No sorry, I try to delete my message, because I leave my personnal email. And no possibilities to do that....

dgitan

I put the version of the mailer.inc.php from v 1.4.19 instead of the new version, and now all works perfectly.
:)

Joachim Müller

That's not a good idea. There's a reason why mailer.inc.php was changed from cpg1.4.19 to cpg1.4.20...

banfa

Quote from: dgitan on February 14, 2009, 08:49:41 AM
I put the version of the mailer.inc.php from v 1.4.19 instead of the new version, and now all works perfectly.
:)

Could you please send me a link, I can download v 1.4.19? I can find only 1.4.20. I have similar problem, however, the registration email works fine, but I can not send eCard.

Joachim Müller

Do not use cpg1.4.19 - as I said above: there are reasons why it was modified. That's why we won't promote the outdated version by posting a link to it.

sk8connection

I run Coppermine Photo Gallery 1.4.21 (stable) and have the same problem, everything works exept email notification (on comments) does not work.

Is there a way to test it? A log where i can see where is the error?

Sincerely

sk8connection

Joachim Müller