# File lib/god/contacts/email.rb, line 51
      def notify(message, time, priority, category, host)
        begin
          body = Email.format.call(self.name, self.email, message, time, priority, category, host)

          case Email.delivery_method
          when :smtp
            notify_smtp(body)
          when :sendmail
            notify_sendmail(body)
          else
            raise "unknown delivery method: #{Email.delivery_method}"
          end
          
          self.info = "sent email to #{self.email}"
        rescue => e
          applog(nil, :info, "failed to send email to #{self.email}: #{e.message}")
          applog(nil, :debug, e.backtrace.join("\n"))
        end
      end