When a user registers his or her self in my installation of 2.0 Alpha, he or she gets the following error message:
Error (ERROR_UNKNOWN) : Could not send mail to ,admin2@domain.com
• in modules/register/classes/GalleryPendingUserHelper.class at line 270 (gallerystatus::error)
• in modules/register/classes/GalleryPendingUserHelper.class at line 232 (gallerypendinguserhelper::_sendemail)
• in modules/register/UserSelfRegistration.inc at line 147 (gallerypendinguserhelper::sendadminemail)
• in main.php at line 170 (userselfregistrationcontroller::handlerequest)
• in main.php at line 47
• in main.php at line 40
The registrant then receives his or her registration e-mail and has no problems. The admins, as the error suggests, do not receive an e-mail. (The addresses above have been replaced for privacy.) Is mail handled differently for admins in the registration process than it is for new users?
Thanks!
----
Gallery URL (optional):
Gallery version: 2.0 Alpha
Webserver (with version): Apache 2.0.50
Datatabase (with version): MySQL 4.0.20
PHP version (eg 4.2.1): 4.3.8
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: Linux
Web browser/version: Safari
Posts: 7994
Edit your config.php and turn on buffered debug mode like this:
$gallery->setDebug('buffered');
Then try again. This time, you'll get quite a lot of debug output
when you get the error. Look towards the bottom of the debug output
and scan backwards for anything that looks like an error, then report
that here. Usually that will give us enough information to work with.
If you can't understand what you're seeing, err on the side of posting
more info. If it's going to be more than 30-40 lines of output, you
should save it into a text file and publish it on your own website and
post a link to it here (so that the forum remains readable).