Function Hook_health_check_email->spf_term_matches

Definitions

sources/hooks/systems/health_checks/email.php

  • Find whether an SPF term matches.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$part string No No required parameter N/A N/A The SPF term
$self_domain string No No required parameter N/A N/A Domain of sending server to match against
$self_ip string No No required parameter N/A N/A IP address of sending server to match against

Returns

  • Whether the check matches
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether an SPF term matches.
 *
 * @param  string $part The SPF term
 * @param  string $self_domain Domain of sending server to match against
 * @param  string $self_ip IP address of sending server to match against
 * @return boolean Whether the check matches
 */

protected function spf_term_matches(string $part, string $self_domain, string $self_ip) : bool