Closed michael-e closed 10 years ago
Ah, I think I found it. You are attempting to send from no-reply@getsymphony.com
. This will not work with most SMTP accounts, because most providers won't allow to "fake" the sender address. It would be much better to use the standard sender from the Symphony prefs!
Of course, the error message is wrong as well. The problem is that the email can not be sent.
:D Thanks for finding that out. I'll try to solve this ASAP.
I encounter another similar bug where nothing would get display because no email providers were setup. I even had a discussion with some people around adding input field in the installer for this, because it is often forgotten about, but the decision was made that since it's not mandatory, it should not sit in the installer.
I think I should simply add a page alert when no email provider is found...
I think that the problem is something else. My installation can send email using SMTP or Sendmail, both configurations are valid. At the moment I am digging through your code to see what the problem might be.
In content.login.php, line 148 ff:
// if no default values are set
if (!is_array($emailSettings) || !isset($emailSettings['from_address'])) {
$email->setFrom($author['email'], Symphony::Configuration()->get('sitename','general'));
} else { // make it work even if no settings are setted.
$email->setFrom('no-reply@getsymphony.com', 'Symphony CMS');
}
You forgot one case, the "everything is OK" case! :-))
Sorry, but I do not see the problem with this excerpt.
You say: If there are no settings, use the author email and the sitename, else use no-reply@getsymphony.com
. So you never use the settings if they are correct!
Damn! Just spotted it. I feel so stupid now.
It takes some time to see the obvious. And it may be simpler if one is a bad programmer (like me).
Hahaha we are all bad programmers, it's the most difficult thing a human can do.
@michael-e How does cadb168 looks ?
Confirmed!
Using Symphony 2.5.0beta2, unbanning via email seems broken.
And yes, I double-checked that I used my account's email address. :-)