Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Approving a user (An error occurred while sending the email)
cycas
✭
My new install of Vanilla, downloaded and set up yesterday, has a minor puzzling problem: I'd be very grateful for any pointers in the right direction.
When a user has requested an account and I go to approve the request, I get the error message below.
One odd thing is that it doesn't seem to affect the functionality: the email does get sent and the user does get approved, but it would still be nice to know why it was happening and get it fixed! I am on PHP Version 4.3.11, MySQL 4.1.19
The error is:
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while sending the email.
Affected Elements
Email.Send();
0
Comments
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while sending the email.
Affected Elements
Email.Send();
The error occurred on or near: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs
After 6 hours of research I have found the solution in MY case. And the result is shocking, because the error message is completely unrelated to the actual cause! In my case the line SENDMAIL_PATH was completely missing in PHP.INI since the latest update of the server software. Here's the correct code in my php.ini. The appropriate code may be different in yours, but it's correct for default QNAP servers.
[mail function] SMTP = localhost smtp_port = 25 sendmail_path = /usr/sbin/sendmail -t -i
It affected ALL mail functions on my server. They all failed. This is logical, because not having the sendmail_path set implies that there is no mail function active at all.
I wonder why Vanilla comes with this weird error message text. Why not come with a text stating that mail() fails due to the fact that it is not active?!