Hello!
I am using:
Drupal 5.0-RC2
PHP 5.2
Apache 2.2
MySql 5.0.27
SMTP module Head revision
I installed the SMTP module, configured it, and sent a test email successfully. So I know that some code path is working.
When a new user creates an account, however, I get the following error:
warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\common.inc on line 1970.
I believe this means that it is not authenticating, indicating it is not using the SMTP module.
Looking at the code in common.inc (below) it looks like the if statement fails to find the smtp_library variable. Then it calls the mail function, which throw the error. Presumably if the if statement succeeded and called the SMTP module mail function it would work.
I'm new to PHP, so this is hard for me to debug after this point. I'd greatly appreciate any help. Thank you!
<?php
// Allow for custom mail backend
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
include_once './' . variable_get('smtp_library', '');
return drupal_mail_wrapper($mailkey, $to, $subject, $body, $from, $headers);
}
else {
/*
** Note: if you are having problems with sending mail, or mails look wrong