We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
self.deliver_mail
1 parent 27f46da commit 9a43af2Copy full SHA for 9a43af2
app/mailers/application_mailer.rb
@@ -10,6 +10,16 @@ class ApplicationMailer < ActionMailer::Base
10
# allow usage of application helper
11
helper :application
12
13
+ def self.deliver_mail(mail)
14
+ # Our SMTP service will throw an error if we attempt
15
+ # to deliver an email without recipients. Occasionally
16
+ # that happens due to events without members. This
17
+ # will prevent those attempts from being made.
18
+ return if mail.recipients.compact.empty?
19
+
20
+ super(mail)
21
+ end
22
23
protected
24
25
def hcb_email_with_name_of(object)
0 commit comments