Home / Mail / get

Mail ‐ get


Description:

get all the information of a mail

The following errors can occur:
- Missing the mail_id parameter!
- The parameter mail_id is not a integer
- Mail could not be found

Example:

You should call this function as followed:
- rest/v2/mail/get?token=TOKEN&database=DATABASE_ID&mail_id=MAIL_ID

                require_once 'Rest.php';

                $username = 'my_username';
                $password = 'my_password';
                $database = '999';

                $rest = new Rest($username, $password, $database);
                $result = $rest->call('mail/get', [
                	'mail_id' => 'MAIL_ID'
                ], 'GET');

                var_dump($result);
            

Parameters:

The following parameters this method can/should be called with:

key: mail_id
values: integer
what: This is the id of the mail that you want the information from

See:

The following items:
- user/login For the TOKEN
- user/database For the DATABASE_ID
- mail/availables For the MAIL_ID