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) 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. | |



 
 
 
 
 
 
 
Posts: 8601
try again with buffered debug mode turned on in config.php and post the additional error detail in the smtp attempt.
Posts: 5
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.
Posts: 32509
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?
Posts: 8601
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