Get Emails Print

  • 0

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] =>
                        )
                )
        )
)


Was this answer helpful?

« Back