{"action":"created","issue":{"url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/161","repository_url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer","labels_url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/161/comments","events_url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/161/events","html_url":"https://github.com/Harvard-University-iCommons/lti_emailer/pull/161","id":146087129,"number":161,"title":"Sprint 45 TLT-2306 Send dummy body to mailgun if there is no body","user":{"login":"rascalking","id":707505,"avatar_url":"https://avatars.githubusercontent.com/u/707505?v=3","gravatar_id":"","url":"https://api.github.com/users/rascalking","html_url":"https://github.com/rascalking","followers_url":"https://api.github.com/users/rascalking/followers","following_url":"https://api.github.com/users/rascalking/following{/other_user}","gists_url":"https://api.github.com/users/rascalking/gists{/gist_id}","starred_url":"https://api.github.com/users/rascalking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rascalking/subscriptions","organizations_url":"https://api.github.com/users/rascalking/orgs","repos_url":"https://api.github.com/users/rascalking/repos","events_url":"https://api.github.com/users/rascalking/events{/privacy}","received_events_url":"https://api.github.com/users/rascalking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-05T19:27:38Z","updated_at":"2016-04-05T19:34:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/pulls/161","html_url":"https://github.com/Harvard-University-iCommons/lti_emailer/pull/161","diff_url":"https://github.com/Harvard-University-iCommons/lti_emailer/pull/161.diff","patch_url":"https://github.com/Harvard-University-iCommons/lti_emailer/pull/161.patch"},"body":"Mailgun's API may not document it, but it won't send emails for you that have empty values for both the `body-plain` and `body-html` parameters.  But they will send emails with `'body-plain': ' '` (ie. a single space for a plain body).  So detect the empty body case, and work around it.\r\n\r\nNOTE: this change includes a test script, since neither outlook nor gmail's web client would send emails with no body at all (they both supplied an empty html document for `body-html`)."},"comment":{"url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/comments/205960754","html_url":"https://github.com/Harvard-University-iCommons/lti_emailer/pull/161#issuecomment-205960754","issue_url":"https://api.github.com/repos/Harvard-University-iCommons/lti_emailer/issues/161","id":205960754,"user":{"login":"elliottyates","id":8975317,"avatar_url":"https://avatars.githubusercontent.com/u/8975317?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottyates","html_url":"https://github.com/elliottyates","followers_url":"https://api.github.com/users/elliottyates/followers","following_url":"https://api.github.com/users/elliottyates/following{/other_user}","gists_url":"https://api.github.com/users/elliottyates/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottyates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottyates/subscriptions","organizations_url":"https://api.github.com/users/elliottyates/orgs","repos_url":"https://api.github.com/users/elliottyates/repos","events_url":"https://api.github.com/users/elliottyates/events{/privacy}","received_events_url":"https://api.github.com/users/elliottyates/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T19:34:54Z","updated_at":"2016-04-05T19:34:54Z","body":"How are we tracking these tests? They are run-once by dev and QA in dev,qa,stage, then we release into the wild and never touch them again, yes?"}}