Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendMailMailer: confusing error message #2

Closed
janmarek opened this issue May 18, 2014 · 3 comments
Closed

SendMailMailer: confusing error message #2

janmarek opened this issue May 18, 2014 · 3 comments

Comments

@janmarek
Copy link

When mail function fails, it does not always create error. For instance you can get error which was earlier created by this code http://api.nette.org/2.1.0/source-Caching.Storages.FileStorage.php.html#325.

Unable to send email: fopen(/home/honza/vec/temp/cache/_Nette.FileTemplate/_Email.RegisterEmail.latte-d7ce40e6e36469422781c16e335ac069.php)

I suggest to improve the exception message. This might be better:

Function mail() failed. Last error: $error[message]
@Majkl578
Copy link

Or we could check whether last error message is different from what it was before sending mail. (Obviously wouldn't work for multiple send calls, but better than nothing.)

@dg
Copy link
Member

dg commented May 18, 2014

@fprochazka
Copy link
Contributor

Awesome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants