{"id":89,"date":"2022-11-21T18:44:54","date_gmt":"2022-11-22T02:44:54","guid":{"rendered":"https:\/\/dejal.com\/blog\/?p=89"},"modified":"2022-11-21T20:11:54","modified_gmt":"2022-11-22T04:11:54","slug":"simon-notify-via-email","status":"publish","type":"post","link":"https:\/\/dejal.com\/blog\/simon-notify-via-email\/","title":{"rendered":"Can Simon notify via email?"},"content":{"rendered":"<body><p><\/p>\n<p>I sometimes receive a question from a potential customer, asking whether <a href=\"https:\/\/dejal.com\/simon\/\">Simon<\/a> has the ability to send a notification via email.<\/p>\n<p>Although I do mention it in a number of places, this isn\u2019t an unreasonable question, particularly if you just download Simon and start playing with it, as no email options appear in the list of available notifiers in the <strong>Edit Test<\/strong> pane by default.<\/p>\n<p>Why is this? Because unlike the <strong>Speech<\/strong> and <strong>Sound<\/strong>\u00a0kinds of notifiers, the <strong>Email<\/strong> one requires some configuration before it can be used, so it can\u2019t be offered by default.<\/p>\n<p>The way notifiers work is (I hope) pretty intuitive, but a little indirect. Simon provides a number of notifier kinds that do the work of notifications, and you configure notifiers to use those, then choose notifiers for each test.<\/p>\n<p>These levels of abstraction allow easy re-use of notifiers: a single kind of notifier can be used by multiple notifiers, and a single notifier can be used by multiple tests, without having to set up the same things over and over again.<\/p>\n<p>For example, you can add a notifier to email yourself for some failures, another email notifier to your clients for other failures, another one for recoveries, and so on, and use whichever ones of those are desired in tens or hundreds of tests, as required, as simply as choosing them from a pop-up menu.<\/p>\n<p>So, as I said, there is no email notifier set up by default, since it needs configuration, but you can easily add one. If you\u2019re editing a test and realize that you want to receive an email when this test changes, fails, and\/or recovers, you can click the <strong>New Notifier\u2026<\/strong> button in the <strong>Notifiers<\/strong> section of the <strong>Edit Test<\/strong>\u00a0pane, which will switch to the Notifiers page, and start editing a new notifier. You can then choose <strong>Email<\/strong> from the <strong>Notifier Kind<\/strong> pop-up menu, and the controls below will change to those for an email, with a sample email pre-populated, which you can edit as desired:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"New notifier\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/11\/New-notifier.png?resize=752%2C314&#038;ssl=1\" alt=\"New notifier\" width=\"752\" height=\"314\" border=\"0\" loading=\"lazy\"><\/p>\n<p>You can then configure the email <strong>To<\/strong> etc fields, plus switch to the <strong>Name<\/strong> page to give the notifier a name, and perhaps the <strong>Options<\/strong> page to indicate whether this notifier is available for changes, failures and\/or recoveries.<\/p>\n<p>Once it all looks good, click <strong>Done<\/strong> to save the notifier. You can check that it is set up correctly by choosing the <strong>File \u25b8 Notify Now<\/strong> menu command; that will send an email with placeholder values. If you don\u2019t receive the email, check the notifier settings.<\/p>\n<p>The new notifier will then be available for that test and any others you want to use it in:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Test notifiers\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/11\/Test-notifiers-1.png?resize=744%2C228&#038;ssl=1\" alt=\"Test notifiers\" width=\"744\" height=\"228\" border=\"0\" loading=\"lazy\"><\/p>\n<p>Easy!<\/p>\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>I sometimes receive a question from a potential customer, asking whether Simon has the ability to send a notification via email. Although I do mention it in a number of places, this isn\u2019t an unreasonable question, particularly if you just download Simon and start playing with it, as no email options appear in the list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,4],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-faq","category-simon"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":3,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}