{"id":5956,"date":"2022-08-10T19:11:07","date_gmt":"2022-08-10T23:11:07","guid":{"rendered":"https:\/\/batchpatch.com\/?p=5956"},"modified":"2022-08-10T19:12:46","modified_gmt":"2022-08-10T23:12:46","slug":"creating-custom-email-notifications-for-the-job-queue","status":"publish","type":"post","link":"https:\/\/batchpatch.com\/creating-custom-email-notifications-for-the-job-queue","title":{"rendered":"Creating Custom Email Notifications for the Job Queue"},"content":{"rendered":"<p>In the most recent release of BatchPatch we added a new form for custom email notifications so that instead of having a singular email notification as the only option for any time an email notification is sent in the application, you can now create as many custom email templates as you want, which enables you to have different emails go to different people at different times and based on different triggers in your job queues.<\/p>\n<p>Use <em>Actions > Email notification > Create\/modify email notifications<\/em><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-14_04_47-Email-Notifications.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-14_04_47-Email-Notifications.png\" alt=\"\" width=\"743\" height=\"462\" class=\"aligncenter size-full wp-image-5957\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-14_04_47-Email-Notifications.png 743w, https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-14_04_47-Email-Notifications-300x187.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>If I then want to create an email notification that will only be used for database admins, perhaps in the cases when I am updating the SQL servers, then I can do that here with something like this:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-17_55_46-Email-Notifications.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-17_55_46-Email-Notifications.png\" alt=\"\" width=\"743\" height=\"462\" class=\"aligncenter size-full wp-image-5958\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-17_55_46-Email-Notifications.png 743w, https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-17_55_46-Email-Notifications-300x187.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>Then once I&#8217;ve created a custom email notification I can use it a particular job queue:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-18_10_37-Job-Queue.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/08\/2022-08-10-18_10_37-Job-Queue.png\" alt=\"\" width=\"1010\" height=\"493\" class=\"aligncenter size-full wp-image-5960\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-18_10_37-Job-Queue.png 1010w, https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-18_10_37-Job-Queue-300x146.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2022\/08\/2022-08-10-18_10_37-Job-Queue-768x375.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the most recent release of BatchPatch we added a new form for custom email notifications so that instead of having a singular email notification as the only option for any time an email notification is sent in the application, you can now create as many custom email templates as you want, which enables you [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,17,3],"tags":[134,39],"class_list":["post-5956","post","type-post","status-publish","format-standard","hentry","category-blog","category-general","category-tutorials","tag-email-alerts","tag-email-notifications"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/5956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/comments?post=5956"}],"version-history":[{"count":2,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/5956\/revisions"}],"predecessor-version":[{"id":5962,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/5956\/revisions\/5962"}],"wp:attachment":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/media?parent=5956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/categories?post=5956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/tags?post=5956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}