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

Not sending email #273

Closed
Rouzax opened this issue Mar 3, 2017 · 10 comments
Closed

Not sending email #273

Rouzax opened this issue Mar 3, 2017 · 10 comments

Comments

@Rouzax
Copy link

Rouzax commented Mar 3, 2017

After reinstalling Spotweb on a new server it is not sending out emails again.

Server: Windows Server 2016
PHP: 7.1.1
Spotweb: 7a38b46

PHP mail is setup, I've created a test php file in my spotweb root and setup the same mail addresses and when I call that file I get an email.

<?php 
    ini_set( 'display_errors', 1 );
    error_reporting( E_ALL );
    $from = "mail@xxx.yyy";
    $to = "mail@xxx.yyy";
    $subject = "PHP Mail Test script";
    $message = "This is a test to check the PHP Mail functionality";
    $headers = "From:" . $from;
    mail($to,$subject,$message, $headers);
    echo "Test email sent";
?>

image

Within Spotweb the notifications table is empty
I see nothing in that is related to email in the debuglog
In my Cpanel of my mail server I also see nothing coming in with Track Delivery

@mesa57
Copy link
Collaborator

mesa57 commented Mar 3, 2017

Tested under php 7.1 and it still works. So there should be some other problem with you're configurations or notifications setup.

@Rouzax
Copy link
Author

Rouzax commented Mar 3, 2017

Should the notifications table hold copies of the send mails?

@mesa57
Copy link
Collaborator

mesa57 commented Mar 3, 2017

No, not a copy of the send mail, but a copy of the notification.
A notification can be send to multiple destinations, not only mail.

# id, userid, stamp, objectid, type, title, body, sent
'1', '3', '1478294062', 'retriever_finished', 'Multi', 'Nieuwe spots opgehaald', 'Er zijn 2 spots en 19 reacties opgehaald.', '1'
'2', '3', '1478357962', 'retriever_finished', 'Multi', 'Nieuwe spots opgehaald', 'Er zijn 230 spots, 3088 reacties en 28 reports opgehaald.', '1'

@Rouzax
Copy link
Author

Rouzax commented Mar 3, 2017

So it would be normal that mine would be completely empty because no notifications have been send yet.
How could I debug this further?

@mesa57
Copy link
Collaborator

mesa57 commented Mar 3, 2017

If it is empty, then no notifications are triggered at all.
Please look at you're notifications setting.

@Rouzax
Copy link
Author

Rouzax commented Mar 3, 2017

image
image

@mesa57
Copy link
Collaborator

mesa57 commented Mar 3, 2017

Are there more the 0 spots retrieved ?
Is you're user member of the group 'Authenticated Users' ?

@Rouzax
Copy link
Author

Rouzax commented Mar 3, 2017

Since I changed the pchart #270 it seems I'm getting mails.
image
Will keep an eye on it to check if all notifications are coming.

@mesa57
Copy link
Collaborator

mesa57 commented Mar 3, 2017

Maybe the statistics update error prevented the notifications.

@Rouzax
Copy link
Author

Rouzax commented Mar 3, 2017

That is what I'm also thinking.

@mesa57 mesa57 closed this as completed Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants