Home / Mail / isTested

Mail ‐ isTested


Description:

Check if the mail is tested and/or needs validation

The following errors can occur:
- Missing the parameter mail_id!
- mail_id is not a integer
- INVALID_MAIL_ID

Example:

You should call this function as followed:
- rest/v2/mail/isTested?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/isTested', [
                	'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 mail_id of the mail you want to test

key: file
values: file
what: The file what you want to upload. This file can be an html file or a zip file with images and the html. Call this like: $options['file'] = @' . realpath($file) . ';filename=' . basename($file);

See:

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