Home / Mail / validate

Mail ‐ validate


Description:

Validates a mail on links, html etc.

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

Example:

You should call this function as followed:
- rest/v2/mail/validate?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/validate', [
                	'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

See:

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