nineinchnick / yii-usr

Yii framework module for user authentication, password reset, registration and profile updating.
http://demo.niix.pl
MIT License
36 stars 24 forks source link

Sending of email #54

Closed gb5256 closed 10 years ago

gb5256 commented 10 years ago

Hello, first of all, thanks for this extension. Works really create. I do have some problems with the mailer extension that you have bundled. It just throws this error: Failed to send an email. Try again or contact the site administrator. Normally, I can active the debug modus for phpmailer, but it does not throw any more details, probably because it is tunneled through your scripts. Any ideas to get the debug string from mailer? gb5256

nineinchnick commented 10 years ago

First, if you are using SMTP, don't forget 'IsSMTP' => array(), in the config.

Second, all mailer class properties are available in the config, so just set SMTPDebug and/or Debugoutput to true. I can't find any other debugging references and I haven't tried that before.

gb5256 commented 10 years ago

If have all three things in my config. But it does not output anything.

nineinchnick commented 10 years ago

What output and where are you expecting?

gb5256 commented 10 years ago

I have this in my config: 'SMTPDebug' => true, 'Debugoutput'=>'echo',

The class.phpmailer.php says about Debugoutput: /**

So I expected that it will echo errors. Or am I wrong with this assumption?

nineinchnick commented 10 years ago

Better try error_log because mails could be send always before a redirect.

gb5256 commented 10 years ago

Ok. It seems that there is something wrong with the error echo. So I indeed am now using the error_log. Thanks. This topic can be closed.