First post here and new to Piwik - loving it so far thanks!
One issue though, I can’t seem to get the email notifications to work. My reports will not send (Error was 'Unable to send mail), nor will the ‘forgot my password’ emails (the mail() function may be disabled).
I know my emails work just fine as I am on shared hosting and have no issues with any of my other websites. The only difference I can think of is that I have installed Piwik on a subdomain of my root site (www.analytics.mydomain.com) - would this make any difference, or are there any configuration changes I need to make because of this?
I have had a look at the logs > empty. Also I can’t see anything out of the ordinary in my php file.
hard to say, Piwik doesn’t do anthing special with the PHP mail() function. You can also specify the SMTP settings in the interface if it helps (eg. to use your own SMTP server)
Unable to send mail sounds like a server configuration issue. Maybe you can setup a different email server (go to Settings > General Settings > Email settings)
The only other server I can setup in the configuration is smtp - I don’t want to use this. I’d rather use the default php mail.
I’d appreciate if anybody could lend some assistance here as the reports are vital to me using the software on many websites for clients.Otherwise it’s back to Google I go! Which I’d rather not!
That’s just incorrect - this is a Piwik issue, nothing to do with my server configuration or webhost. Please read my earlier posts again where I explained that I AM able to send emails from my server, as I host multiple websites and have no issues sending emails whatsoever from any other website I host.
Also, your post doesn’t explain the fact that sending emails won’t work when using Gmail and the recommended Piwik settings - nothing to do with my webhost.
If there is anybody else that can offer some valuable assistance I would be most grateful.
Is anybody else having this issue/had this issue? I’d like to know how it’s resolved if possible.
The next thing I could try is install it on my main domain i.e not a sub domain, although I dont know how this would make a difference? I would like to keep the existing statistical info regarding the websites that I am currently tracking.
Thanks for the advice, I don’t see any other messages. Although the message does differ depending on whether or not I use smtp or php mail. If smtp I get ‘Connection timed out’. If php mail I get ‘Unable to send mail’
I have created a bug possible bug #4944 so hopefully somebody can have a closer look. Or advise me on deeper troubleshooting ideas?
update - I have managed to get the email reports to send. Looks like it’s a Piwik config issue after all. Once I change my trusted host from www.mysubdomain.mydomain.com to www.mydomain.com it works, BUT there is a huge yellow error message on my screen see below
How do I fix this problem and how do I login again?
The Piwik Super User can manually edit the file piwik/config/config.ini.php and add the following lines:
[General]
trusted_hosts[] = “www.analytics.mydomain.com"
After making the change, you will be able to login again.
You may also disable this security feature (not recommended). To do so edit config/config.ini.php and add:
[General]
enable_trusted_host_check=0”]