{"id":18750673,"url":"https://github.com/webiny/notificationmanager","last_synced_at":"2025-06-11T23:38:56.695Z","repository":{"id":62547880,"uuid":"58855996","full_name":"webiny/NotificationManager","owner":"webiny","description":"[NOT MAINTAINED] Webiny app that manages notifications. For now supports email notifications and slack messages.","archived":false,"fork":false,"pushed_at":"2017-11-21T19:43:34.000Z","size":303,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-20T00:51:57.578Z","etag":null,"topics":["email","notifications","slack","transactional-emails","webiny"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webiny.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-15T10:29:26.000Z","updated_at":"2022-10-27T04:40:35.000Z","dependencies_parsed_at":"2022-11-02T22:30:31.079Z","dependency_job_id":null,"html_url":"https://github.com/webiny/NotificationManager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/webiny/NotificationManager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webiny%2FNotificationManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webiny%2FNotificationManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webiny%2FNotificationManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webiny%2FNotificationManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webiny","download_url":"https://codeload.github.com/webiny/NotificationManager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webiny%2FNotificationManager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259364925,"owners_count":22846580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","notifications","slack","transactional-emails","webiny"],"created_at":"2024-11-07T17:12:46.963Z","updated_at":"2025-06-11T23:38:56.671Z","avatar_url":"https://github.com/webiny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notification Manager\n\nNotification Manager app provides a user-friendly interface for creating transactional emails\nsimilar to Mandrill with a few additional features that make your development life a lot easier.\n\nThe system keeps track of your email variables and will not send your email if there are any missing replacement values,\nwhich will spare you from embarrassment and unprofessional looking emails. \n\nBesides the regular email templates, you are also able to create email layout templates (for your header, footer, etc.) \nand save you some time maintaining dozens and even hundreds of templates when your company contact info or social media accounts change.\n\n## Sending email with attachments from PHP\n\n```php\n/* @var NotificationManager $nm */\n$nm = $this-\u003ewService('NotificationManager');\n$notification = $nm-\u003egetNotification('test');\n\n$file = new File('webiny.json', $this-\u003ewStorage('YourStorage'));\n$notification-\u003eaddAttachment($file, 'custom.json', 'application/json');\n\n// the recipient needs to be instance of Recipients\\Email, based on that notification manager know what type of notification to send\n$recipient = new \\Apps\\NotificationManager\\Php\\Lib\\Recipients\\Email('client@gmail.com', 'ClientName');\n$notification-\u003esetRecipient($recipient);\n$notification-\u003esend();\n```\n\n## Instant Send\n\nIf you don't want your emails to be added to the queue, but you want them to be sent instantly, just set `NotificationManager.InstantSend`\nto `true` in your config. This is useful for development, so you don't wait for the cron job to trigger for in order to receive your email.\n\n```yaml\nNotificationManager:\n  InstantSend: true\n```\n\n## Reroute sending\n\nIn situations where you would need to reroute emails, i.e. you downloaded a production database with customer data, but you don't want the system\nto accidentally send an email to that customer. You can tell to the notification system that all emails should be sent to a specific email,\nregardless to what the email queue says.\n\n```yaml\nNotificationManager:\n  Reroute: me@mail.com\n```\n\nAll notifications will now be sent to `me@mail.com`.\n\n\n## Email content - template\n\nThe email content field is parsed by Smarty template engine. This enables you to write an if or a foreach loop, amongst many other stuff that smarty supports.\nYou can also write variables like {$object.attribute} in case if you want to access child parameters, or array keys.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebiny%2Fnotificationmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebiny%2Fnotificationmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebiny%2Fnotificationmanager/lists"}