{"action":"closed","issue":{"url":"https://api.github.com/repos/paulcsmith/bamboo/issues/24","repository_url":"https://api.github.com/repos/paulcsmith/bamboo","labels_url":"https://api.github.com/repos/paulcsmith/bamboo/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/paulcsmith/bamboo/issues/24/comments","events_url":"https://api.github.com/repos/paulcsmith/bamboo/issues/24/events","html_url":"https://github.com/paulcsmith/bamboo/issues/24","id":121295300,"number":24,"title":"Should deliver and deliver_async noop if all recipients are blank?","user":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/paulcsmith/bamboo/milestones/1","html_url":"https://github.com/paulcsmith/bamboo/milestones/0.3.0","labels_url":"https://api.github.com/repos/paulcsmith/bamboo/milestones/1/labels","id":1560229,"number":1,"title":"0.3.0","description":"","creator":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2016-02-03T05:03:01Z","updated_at":"2016-02-11T03:42:06Z","due_on":"2016-02-12T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-12-09T17:15:14Z","updated_at":"2016-02-11T03:42:06Z","closed_at":"2016-02-11T03:42:06Z","body":"While using this in one of our applications we had to do something like this\r\n\r\n```elixir\r\nusers = Repo.all(User)\r\n\r\nif length(users) > 0 do\r\n  Emails.welcome_email(users) |> Mailer.deliver_async\r\nend\r\n```\r\n\r\nMaybe deliver_async should throw a warning? Maybe an option to allow empty_recipients?\r\n\r\n```\r\ndeliver_async(allow_empty_recipients: true)\r\n```\r\n\r\nMaybe this could be done at the mailer level via an option?\r\n\r\n```\r\ndefmodule MyApp.Mailer do\r\n  use Bamboo.Mailer, otp_app: :my_app\r\n\r\n  @allow_empty_recipients true\r\nend\r\n```"}}