lib/mandrails/delivery/mandrill.rb
# Provide read/write access, dunno why write access is required,
# but seems to be in all deliver_methods from mikel/mail as well
Provide read/write access, dunno why write access is required,
but seems to be in all deliver_methods from mikel/mail as well
Provide read / write access dunno why write access is required but seems to be in all deliver_methods from mikel / mail as well
def deliver!(mail)
        builder = Mandrails::MessageBuilder.new mail, settings
        response = mandrill_api.messages.send(builder.as_json, settings[:async])
        return response if settings[:return_response]
        self
      end
def deliver! ( mail ) builder = Mandrails :: MessageBuilder . new mail , settings response = mandrill_api . messages . send ( builder . as_json , settings [ :async ] ) return response if settings [ :return_response ] self end
Provide read/write access, dunno why write access is required,
but seems to be in all deliver_methods from mikel/mail as well
Provide read / write access dunno why write access is required but seems to be in all deliver_methods from mikel / mail as well
# TODO: verify incoming `mail` argument, see https://github.com/mikel/mail/blob/master/lib/mail/check_delivery_params.rb # Either return response or instance
mail
<not_specific>