Support > cpg1.5 email
Windows: Critical error The registration confirmation email can't be send!
RBiZ:
Critical error
The registration confirmation email can't be send!
Critical error
The password reminder email can't be sent!
I am using a Hostgator Personal Windows account, and am receiving the error message when i try to register a new user. I have tested many things, including leaving the smtp host blank, entering localhost, and entering the smtp hostname (the username (email address) & password fields are filled in with a working email on the server). After much testing, I went into the code in mailer.inc.php and changed from:
var $SMTPAuth = false; to var $SMTPAuth = true; since I believe that Hostgator requires authentication. This also did not work.
I found a post that may be a solution from September 2010 http://forum.coppermine-gallery.net/index.php/topic,66826.0.html , however it looks like the code in mailer.inc.php has been modified since then (Reply #15) so I did not attempt to modify my file that code.
Αndrι:
According to that post, try to change
--- Code: ---ini_set('sendmail_from', $this->Sender);
--- End code ---
to something hard-coded as orb353 did.
--- Quote from: RBiZ on August 10, 2012, 07:14:12 am ---I went into the code in mailer.inc.php and changed from:
var $SMTPAuth = false; to var $SMTPAuth = true; since I believe that Hostgator requires authentication. This also did not work.
--- End quote ---
There's no need to change that line. As far as I can see it won't be used at all.
Does sending emails with PHP's mail() function work? What's the error message with Coppermine's debug mode enabled?
RBiZ:
Here are my errors in debug mode.
I am not sure how to test sending emails with PHP's mail() function
When smtp.bestfriendsvethospital.com is entered in SMTP HOST
\include\mailer.inc.php
Warning line 2114: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No such host is known.
Warning line 2114: fsockopen() [function.fsockopen]: unable to connect to smtp.bestfriendsvethospital.com:25 (php_network_getaddresses: getaddrinfo failed: No such host is known. )
CPG Notice line 1695: SMTP Error: Could not connect to SMTP host.
When SMTP HOST is left empty
Listed in error is: register.php - Line: 627
include\mailer.inc.php
Warning line 588: mail() [function.mail]: SMTP server response: 550 <lakespyder@gmail.com> No such user here
CPG Notice line 1695: Could not instantiate mail function.
When localhost is entered in SMTP HOST
\include\mailer.inc.php
Warning line 2114: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )
CPG Notice line 1695: SMTP Error: Could not connect to SMTP host.
When SMTP HOST is left empty and I hardcoded the change below:
if ($this->Sender != '' && strtolower(ini_get('safe_mode')) != 'on' && ini_get('safe_mode') != 1) {
$old_from = ini_get('sendmail_from');
//ini_set('sendmail_from', $this->Sender);
ini_set('sendmail_from',"vet@bestfriendsvethospital.com");
\include\mailer.inc.php
Warning line 590: mail() [function.mail]: SMTP server response: 550 <ra@rbizmarketing.com> No such user here
CPG Notice line 1697: Could not instantiate mail function.
Αndrι:
--- Quote from: RBiZ on August 10, 2012, 07:13:14 pm ---I am not sure how to test sending emails with PHP's mail() function
--- End quote ---
http://www.php.net/manual/en/function.mail.php
--- Quote from: RBiZ on August 10, 2012, 07:13:14 pm ---Could not instantiate mail function.
--- End quote ---
It seems that sendmail isn't installed or configured on your system. Please contact your hosting provider.
RBiZ:
I am using a Hostgator Personal Windows account -
Here is what support at Hostgator says:
As far as sendmail being installed; You are on shared hosting environment and any application must use SMTP Authentication in order to send emails
Navigation
[0] Message Index
[#] Next page
Go to full version