Class: Mandrill::Inbound
- Inherits:
-
Object
- Object
- Mandrill::Inbound
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#domains ⇒ Array
List the domains that have been configured for inbound delivery.
-
#initialize(master) ⇒ Inbound
constructor
A new instance of Inbound.
-
#routes(domain) ⇒ Array
List the mailbox routes defined for an inbound domain.
-
#send_raw(raw_message, to = nil, mail_from = nil, helo = nil, client_address = nil) ⇒ Array
Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP.
Constructor Details
#initialize(master) ⇒ Inbound
Returns a new instance of Inbound.
376 377 378 |
# File 'lib/mandrill/api.rb', line 376 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
374 375 376 |
# File 'lib/mandrill/api.rb', line 374 def master @master end |
Instance Method Details
#domains ⇒ Array
List the domains that have been configured for inbound delivery
386 387 388 389 |
# File 'lib/mandrill/api.rb', line 386 def domains() _params = {} return @master.call 'inbound/domains', _params end |
#routes(domain) ⇒ Array
List the mailbox routes defined for an inbound domain
397 398 399 400 |
# File 'lib/mandrill/api.rb', line 397 def routes(domain) _params = {:domain => domain} return @master.call 'inbound/routes', _params end |
#send_raw(raw_message, to = nil, mail_from = nil, helo = nil, client_address = nil) ⇒ Array
Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP
414 415 416 417 |
# File 'lib/mandrill/api.rb', line 414 def send_raw(, to=nil, mail_from=nil, helo=nil, client_address=nil) _params = {:raw_message => , :to => to, :mail_from => mail_from, :helo => helo, :client_address => client_address} return @master.call 'inbound/send-raw', _params end |