Get Emails

getemails

Purpose

This command is used to get a list of the emails what sended out

Attributes

Optional Attributes

  • date - date to obtain emails for. Can be YYYYMMDD, YYYYMM, MMDD, DD or MM
  • subject - to obtain email with a specific subject
  • limitstart - for pagination, specify an ID to start at (default = 0)
  • limitnum - to restrict the number of results returned (default = 25)

Example Command

$postfields = array();
$postfields["responsetype"] = "json";

$postfields["action"] = "getemails";

$result = mikrovps_SendCommand( $postfields );

Successful Response

Array
(
    [result] => success
    [totalresults] => 1
    [startnumber] => 0
    [numreturned] => 1
    [emails] => Array
        (
            [email] => Array
                (
                    [0] => Array
                        (
                            [id] => 1
                            [userid] => 1
                            [subject] => Subject
                            [message] => Message
                            [date] => 2015-06-06 22:00:05
                            [to] => demo@demo.com
                            [cc] =>
                            [bcc] =>
                        )
                )
        )
)

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Add Cancel Request

addcancelrequest Purpose This command is used to Add Cancellation Request for a specific...

Add Contact

addcontact Purpose This command is used to create a new contact under an account. Attributes...

Delete Contact

deletecontact Purpose This command is used to delete a contact in the system. Attributes...

Get Clients Details

getclientsdetails Purpose This command is used to retrieve all the data held about your...

Get Clients Addons

getclientsaddons Purpose This command is used to obtain the addons associated with a client...