# Task OP-9365 - Notify recently active users of cloud of notification changes

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9365

## Details

| Attribute | Value |
| --- | --- |
| Assignee | Markus Kahl |
| Date | 2021-11-15 |
| Priority | Medium |
| Target versions | 12.0.0 |
| Category |  |
| Labels |  |

## Description

```ruby
begin
  User
  	.active
  	.where('last_login_on >= ?', 1.year.ago)
  	.find_each do |user|
      
    AnnouncementMailer
    .announce(
      user,
      subject: :'notifications.update_info_mail.subject',
      body: :'notifications.update_info_mail.body',
      body_header: :'notifications.update_info_mail.body_header',
      body_subheader: :'notifications.update_info_mail.body_subheader'
    )
    .deliver_later
  end
end
```
