ascendro / redmine_issue_reminder

Plugin for Redmine to create different role based reminders for a project
20 stars 48 forks source link

Emails are not sent #9

Closed danaivehr closed 12 years ago

danaivehr commented 12 years ago

Hi!

Thank you very much! It's very cool plugin, and it is exactly what i need.

Unfortunately, it seems to not send e-mails. I tryed it on windows server 2003 and suse linux, without success.

Configs are

n1: OpenSuse (2.6.32-5-amd64 kernel) redmine 1.1.2 sqlite (don't know version, it's on the hosting)

n2: Win server 2003 redmine 1.2.1 MySql (don't know version...)

I have install plugin as described in readme. Then i've add query in the web interface, add reminder for my role. Query is not empty.

On Suse I try to simply envoke $ rake reminder:exec RAILS_ENV="production" --trace it outputs ** Invoke reminder:exec (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute reminder:exec and exits. No emails. And every time is "first_time" - is it normal?

I don't know ruby, but i tryed to dig a little by placing the "puts" in several places in the code. I also have commented all cases in def execute? and left only true there. Even issues_reminder(user, queries_data) in reminder_mailer.rb is executed, and i can see myself in recepients, the subject is correct.

May be ActionMailer fails, but i don't know, how to check it. May be i have incorrect configuration in web-interface.

Please help me with this issue. PS. Sorry for my english.

bosko commented 12 years ago

Can you send test mail from Redmine at all? There is a link for sending test mail on the administration settings page on the "Email notification" tab in the lower right corner. What mail server are you using and what are your mail settings?

danaivehr commented 12 years ago

Yes I can, and even notification e-mail are sent as well (for changes in issues and documents (dmsf plugin)). By the way, not all notifications are switched on. Here is the list of checked:

danaivehr commented 12 years ago

I'm very sorry. I've found out that all letters were classified as spam and i couldn't see them.

Nevertheless, why are they marked as spam? Redmine inbuild notifications are not classified as spam.

danaivehr commented 12 years ago

Another question. I am testing plugin on winserver, with out my modifications. Email sent once, and now, when i change roles in reminder, or create new queries and reminders, there is no Emails anymore when i execute ... reminder:exec ... Can you explain me, how exactly is it work? I read that it checks if time has come or rules were changed, and sends emails if necessary. But i change the rules and recieve no emails after invokation((

bosko commented 12 years ago

Reminder execution is not triggered by change in roles. It is triggered only by change of time parts. Answer to your question about marking emails as spam is hard to give. I guess it is rather a question for spam filter developers.

danaivehr commented 12 years ago

Thank you very much! One more question: in permission settings what is the difference between "View issue reminder" in project section and "View issue reminder" in issue reminder section?

bosko commented 12 years ago

If you disable issue reminder in the project setting it will disable reminders for that particular project. On the other hand in the roles part you can disable issue reminder for particular role which means even if only some roles will be able to set up reminders for projects that have reminders enabled. Hopefully this answers your question.

danaivehr commented 12 years ago

If you disable issue reminder in the project setting

To make it more clean: I mean two permissions with the same name on the one page - for example on host/redmine/roles/edit/3 i can see permissions grouped in small sections. I have "View issue reminder" checkbox in "project" section, and i have "View issue reminder" checkbox in "issue reminder" section. What is the difference between this two checkboxes?

MichaelKling commented 12 years ago

hey danaivehr - i just tested it and it's like this: both fields are the same right. if you disable Project -View Issue Reminder but not disable Issue Reminder - View Issue Reminder, it will not overtake the change (Issue Reminder - View Issue Reminder is dominant). Enabling is possible with this field.

I will create an extra issue for this in order to remove the box in Project or Issue Reminder (dont know what fits better)

k-akarsh commented 12 years ago

Emails are not going. Redmine default emails are working fine.I checked the log files and found that the list of users to whom the reminders have to be sent is not being generated. When i run this rake reminder:exec RAILS_ENV="production" --trace
the output is * Invoke reminder:exec (first_time) * Invoke environment (first_time) * Execute environment * Execute reminder:exec

The contents of the log file:

Logfile created on Thu Feb 02 12:51:44 +0530 2012 SQL (0.2ms) SET NAMES 'utf8' SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 SQL (0.2ms) SET NAMES 'utf8' SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 Reminder Load (0.2ms) SELECT * FROM reminders  Reminder Columns (1.1ms) SHOW FIELDS FROM reminders

MichaelKling commented 12 years ago

@k-akarsh Please take a look at this: #14. Also we solved an issue when there are groups assigned to a project ( #16 )