redmine_mail_reminder icon indicating copy to clipboard operation
redmine_mail_reminder copied to clipboard

Send email if no issue

Open lashnag opened this issue 9 years ago • 9 comments

Hello! I have email if there is no issues:

Project "certs" with query "п≈п╟п╢п╟я┤п╦ п╢п╩я▐ п╬п╠п╫п╬п╡п╩п╣п╫п╦я▐" [0;94;49m is processing. [0m

lashnag avatar Jul 28 '16 10:07 lashnag

Environment: Redmine version 3.2.3.stable Ruby version 2.2.5-p319 (2016-04-26) [amd64-freebsd10] Rails version 4.2.7 Environment production Database adapter Mysql2

And i see in code comment:

Not Sending email if there are no issues

lashnag avatar Jul 28 '16 11:07 lashnag

1

lashnag avatar Jul 28 '16 11:07 lashnag

@lashnag do you see issues when you search the query in redmine?

jcppkkk avatar Jul 28 '16 14:07 jcppkkk

2 Yes, but i don't see any addiction

lashnag avatar Jul 28 '16 15:07 lashnag

https://github.com/Hopebaytech/redmine_mail_reminder/blob/master/app/models/mail_reminder_mailer.rb - in this file on 43 i can see check if empty, but i don't khow ruby...

lashnag avatar Jul 28 '16 15:07 lashnag

@lashnag yes redmine_mail_reminder will not send mail if the query result has no issue, to prevent user received empty mail with no content. So you need to check if your user(the one want to receive mail) can see any issues in the query page on redmine. if answer is no then mail will not sent.

jcppkkk avatar Jul 28 '16 15:07 jcppkkk

Now i set reminder only to send mail to administrators:

Project "certs" with query "Cert issue reminder" [0;94;49m is processing. [0m [email protected] [email protected]

But the problem is steel there... 1

lashnag avatar Aug 01 '16 07:08 lashnag

I can log some queries if you say where...

lashnag avatar Aug 01 '16 07:08 lashnag

@jcppkkk do you have any ideas? I can log anything...

lashnag avatar Aug 04 '16 06:08 lashnag