user self-registration warning

Creating and modifying plugins.
Post Reply
xyelox
Regular
Posts: 6
Joined: Thu Feb 18, 2010 1:43 am

user self-registration warning

Post by xyelox »

hey there!

I face a problem with self-registration plugin
when a new user would like to register (on their own), after filling in name, password and email and hit 'Go!'button,
the system will give out a message saying 'Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\EasyPHP5.3.0\www\serendipity\plugins\serendipity_plugin_adduser\common.inc.php on line 75

Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\EasyPHP5.3.0\www\serendipity\plugins\serendipity_plugin_adduser\common.inc.php on line 75'
(i am using gmail as the smtp server)

I've checked the database, and the new registered authors are listed down in the pending_authors table.So there is no problem in connecting to the database, right?

The problem is, i am also using the forgetpassword plugin.
the plugin works fine with no problem sending out mail to user's account
the system even send an email to user to notify that someone else had commented on thier entry.

Is the error is what like the system stated or is there any setting that I overlook? Any help is much appreciated!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: user self-registration warning

Post by garvinhicking »

Hi!

This is a PHP specific problem. You might need to consider a PHP forum to ask how to setup GMail as an internal PHP mailer, as this problem does not really relate to Serendipity itself. Google SMTP requires SMTP over SSL, and thus some additional modules for your PHP.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xyelox
Regular
Posts: 6
Joined: Thu Feb 18, 2010 1:43 am

Re: user self-registration warning

Post by xyelox »

hey there (again)!

i've downloaded the latest adduser plugin, it works fine. exactly like what i wanted
it just that, when the user register a message "Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\EasyPHP5.3.0\www\serendipity\plugins\serendipity_event_smtpmail\php5\class.pop3.php on line 319" appear.

what's wrong with this? is the system fails to detect the connection? the user however will still get the msg and authenticate to be an author by the system..

how do i change the message appearing? how do i fix this error message? thanx for help.

regards,
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: user self-registration warning

Post by kleinerChemiker »

The mailserver do not respond within 60 seconds. Check if the credentials are correct for you mailserver in the smtpmail plugin and if your hoster blocks the connection.
wan86
Regular
Posts: 20
Joined: Fri Feb 19, 2010 2:46 am

Re: user self-registration warning

Post by wan86 »

from this coding:-

private function getResponse ($size = 512) {
$pop3_response = fgets($this->pop_conn, $size);

change it to became like below

private function getResponse ($size = 128) {
set_time_limit(0);
$pop3_response = fgets($this->pop_conn, $size);

return $pop3_response;
}
Post Reply