Class: Hubspot::DeliveryMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot/delivery_method.rb

Instance Method Summary collapse

Instance Method Details

#deliver!(mail) ⇒ Object

Raises:

  • (NotImplementedError)


3
4
5
6
7
8
9
10
# File 'lib/hubspot/delivery_method.rb', line 3

def deliver!(mail)
  raise NotImplementedError
  delivery_method_options = { user_name: smtp_user_name, password: smtp_password, address: smtp_host, port: smtp_port, authentication: :plain, enable_starttls_auto: true }

  headers = headers.merge!(delivery_method_options: delivery_method_options)

  super(mail)
end