Deliverability Tools
OM_Deliverability provides SPF/DKIM/DMARC health checks and sender reputation monitoring.
SPF / DKIM / DMARC Checker
Run from OMailer → Settings → Deliverability or via PHP:
php$checker = new OM_Deliverability();
// Check a domain's email authentication records
$result = $checker->check_domain( 'yourdomain.com' );
// Returns:
// [
// 'spf' => [ 'found' => bool, 'record' => string, 'pass' => bool ],
// 'dkim' => [ 'found' => bool, 'selector' => string, 'pass' => bool ],
// 'dmarc' => [ 'found' => bool, 'record' => string, 'policy' => string ],
// ]
Spam Score Checker
OM_SpamScore evaluates campaign content before sending.
php$score = OM_SpamScore::check( $html_content );
// Returns:
// [
// 'score' => float, // 0.0 = clean, 5.0+ = likely spam
// 'triggers' => string[], // list of triggered rules
// 'pass' => bool, // true if score < 3.0
// ]
Checks run against: image-to-text ratio, spammy phrases, link density, missing unsubscribe link, missing plain-text alternative, suspicious URLs.
Suppression List
OM_Suppression maintains a global do-not-email list separate from subscriber status.
php// Check before sending
if ( OM_Suppression::is_suppressed( $email ) ) return;
// Add to suppression list
OM_Suppression::suppress( $email, 'bounce', 'mailgun_webhook' );
// reason: 'bounce'|'complaint'|'manual'|'import'|'unsubscribe'
// Remove from suppression list
OM_Suppression::unsuppress( $email );
// Import a list of suppressed emails
OM_Suppression::import_csv( $file_path );