createDomain() public method

Create a new Domain with the given Name.
public createDomain ( string $name, string $returnPathDomain = NULL ) : Postmark\Models\DynamicResponseModel
$name string The name of the Domain.
$returnPathDomain string The custom Return-Path domain for the Sender Signature.
return Postmark\Models\DynamicResponseModel
コード例 #1
0
 function testClientCanVerifySPFForDomain()
 {
     $tk = parent::$testKeys;
     $client = new PostmarkAdminClient($tk->WRITE_ACCOUNT_TOKEN, $tk->TEST_TIMEOUT);
     $domainName = $tk->WRITE_TEST_DOMAIN_NAME;
     $name = 'test-php-spf-' . $domainName;
     $domain = $client->createDomain($name);
     $client->verifyDomainSPF($domain->id);
 }