forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: dgitan on February 13, 2009, 03:37:53 pm

Title: Problem with mail
Post by: dgitan on February 13, 2009, 03:37:53 pm
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: [Select]
############### 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
Title: Re: Problem with mail
Post by: Hein Traag on February 13, 2009, 03:45:01 pm
And you waited 3 minutes before quoting yourself?? Grow some patience.

** Deleted obsolete second post and edited email adres for user.
Title: Re: Problem with mail
Post by: dgitan on February 13, 2009, 03:48:06 pm
No sorry, I try to delete my message, because I leave my personnal email. And no possibilities to do that....
Title: Re: Problem with mail
Post by: 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.
 :)
Title: Re: Problem with mail
Post by: Joachim Müller on February 17, 2009, 09:12:44 am
That's not a good idea. There's a reason why mailer.inc.php was changed from cpg1.4.19 to cpg1.4.20...
Title: Re: Problem with mail
Post by: banfa on February 18, 2009, 11:37:23 pm
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.
Title: Re: Problem with mail
Post by: Joachim Müller on February 25, 2009, 09:55:01 am
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.
Title: Re: Problem with mail
Post by: sk8connection on April 21, 2009, 03:10:57 pm
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
Title: Re: Problem with mail
Post by: Joachim Müller on April 21, 2009, 11:25:05 pm
Locking...