Method: Mandrill::Messages#list_scheduled

Defined in:
lib/mandrill/api.rb

#list_scheduled(to = nil) ⇒ Array

Queries your scheduled emails.

Parameters:

  • to (String) (defaults to: nil)

    an optional recipient address to restrict results to

Returns:

  • (Array)

    a list of up to 1000 scheduled emails

    • Hash

      return[] a scheduled email

      - [String] _id the scheduled message id
      - [String] created_at the UTC timestamp when the message was created, in YYYY-MM-DD HH:MM:SS format
      - [String] send_at the UTC timestamp when the message will be sent, in YYYY-MM-DD HH:MM:SS format
      - [String] from_email the email's sender address
      - [String] to the email's recipient
      - [String] subject the email's subject
      


1117
1118
1119
1120
# File 'lib/mandrill/api.rb', line 1117

def list_scheduled(to=nil)
    _params = {:to => to}
    return @master.call 'messages/list-scheduled', _params
end