mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-18 05:43:15 +03:00
added param to force DKIM authority
This commit is contained in:
parent
b30417facd
commit
b91979b1b6
@ -78,10 +78,11 @@ class Domain extends HttpApi
|
||||
* @param string $smtpPass password for SMTP authentication
|
||||
* @param string $spamAction `disable` or `tag` - inbound spam filtering
|
||||
* @param bool $wildcard domain will accept email for subdomains
|
||||
* @param bool $forceDkimAuthority force DKIM authority
|
||||
*
|
||||
* @return CreateResponse|array|ResponseInterface
|
||||
*/
|
||||
public function create(string $domain, string $smtpPass = null, string $spamAction = null, bool $wildcard = null)
|
||||
public function create(string $domain, string $smtpPass = null, string $spamAction = null, bool $wildcard = null, bool $forceDkimAuthority = null)
|
||||
{
|
||||
Assert::stringNotEmpty($domain);
|
||||
|
||||
@ -106,6 +107,12 @@ class Domain extends HttpApi
|
||||
$params['wildcard'] = $wildcard ? 'true' : 'false';
|
||||
}
|
||||
|
||||
if (null !== $forceDkimAuthority) {
|
||||
Assert::boolean($forceDkimAuthority);
|
||||
|
||||
$params['force_dkim_authority'] = $forceDkimAuthority ? 'true' : 'false';
|
||||
}
|
||||
|
||||
$response = $this->httpPost('/v3/domains', $params);
|
||||
|
||||
return $this->hydrateResponse($response, CreateResponse::class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user