Error sending email

trisalsa

Joined: 2005-05-01
Posts: 5
Posted: Sun, 2005-05-01 03:37

I've installed G2 and all seems to be working well except when a user registers, they get the following:

Error (ERROR_UNKNOWN) :

* in modules/core/classes/helpers/MailHelper_simple.class at line 90 (UserSelfRegistrationController::error)
* in modules/core/classes/GalleryCoreApi.class at line 2438 (UserSelfRegistrationController::sendTemplatedEmail)
* in modules/register/classes/GalleryPendingUserHelper.class at line 179 (UserSelfRegistrationController::sendTemplatedEmail)
* in modules/register/UserSelfRegistration.inc at line 152 (UserSelfRegistrationController::sendConfirmationEmail)
* in main.php at line 173 (UserSelfRegistrationController::handleRequest)
* in main.php at line 79
* in main.php at line 70

I have email setup under general with valid smtp address and account information, same ones that previously worked with G1. Under registration, I have selected Use Confirmation Emails and have Email Site Admin checked.
----

Gallery URL (optional): http://trisalsa.dyndns.org:8081/gallery
Gallery version: G2 Beta 2
Webserver (with version): Apache 2.0.54
Datatabase (with version): MySQL 4.1.11
PHP version (eg 4.2.1): 5.04
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: Suse Pro 9.2
Web browser/version: Firefox 1.02
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-05-01 03:43

try again with buffered debug mode turned on in config.php and post the additional error detail in the smtp attempt.

 
trisalsa

Joined: 2005-05-01
Posts: 5
Posted: Sun, 2005-05-01 12:10

Figured out what the problem was. On the smtp configuration, I placed my pop account information. The smtp from my provider does not need this information. The buffered debug gave the following information:

realpath(/home/htdocs/gallery/modules/core/classes/../../../)
smtpmail error: Error (ERROR_PLATFORM_FAILURE) : Problem sending mail.
Server response: 502 Command is locally disabled
in lib/smtp/smtp.php at line 32 (GalleryStatus::error)
in lib/smtp/smtp.php at line 88
in modules/core/classes/GalleryPlatform.class at line 943
in modules/core/classes/helpers/MailHelper_simple.class at
line 87 (UnixPlatform::mail)
in modules/core/classes/GalleryCoreApi.class at line 2438
(UserSelfRegistrationController::sendTemplatedEmail)
in modules/register/classes/GalleryPendingUserHelper.class at
line 179 (UserSelfRegistrationController::sendTemplatedEmail)
in modules/register/UserSelfRegistration.inc at line 152
(UserSelfRegistrationController::sendConfirmationEmail)
in main.php at line 173
(UserSelfRegistrationController::handleRequest)
in main.php at line 79
in main.php at line 70

as follow to the original Error (ERROR_UNKNOWN) .

After removing the ID and password for the smtp setup, the registration worked fine. Thanks Again.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-05-01 12:14

mindless, perhaps we should test the email settings, i.e. send a test email before we accept an email config.
additionally, this error (ERROR_UNKNOWN) should be better catched.

task?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-05-01 15:37

an email test is a good idea (maybe just a Test Settings button with send-to box in site admin/general).
it uses ERROR_UNKNOWN because mail() returns boolean.. false means it failed.. but why? --> UNKNOWN