class Hubspot::DeliveryMethod
Public Instance Methods
deliver!(mail)
click to toggle source
Calls superclass method
# 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
Private Instance Methods
configuration()
click to toggle source
# File lib/hubspot/delivery_method.rb, line 14 def configuration Hubspot.configuration end
smtp_host()
click to toggle source
# File lib/hubspot/delivery_method.rb, line 26 def smtp_host configuration.address end
smtp_password()
click to toggle source
# File lib/hubspot/delivery_method.rb, line 22 def smtp_password configuration.password end
smtp_port()
click to toggle source
# File lib/hubspot/delivery_method.rb, line 30 def smtp_port configuration.port end
smtp_user_name()
click to toggle source
# File lib/hubspot/delivery_method.rb, line 18 def smtp_user_name configuration.user_name end