Viewing 3 replies - 1 through 3 (of 3 total)
  • @adamcoulls

    DKIM is usually configured on the hosting server so I don’t think it’s something Subscribe2 could ever directly control or support. Of course if it is already set up on the server then it would be useful for email deliverability.

    Thread Starter adamcoulls

    (@adamcoulls)

    Agreed, but you do need to populate the email header with the private key.

    @adamcoulls

    I’m not sure the majority of users would see a need for this at the moment – perhaps as it gets more popular.

    It seems quite simple to configure using the phpmailer_init hook, the following in the theme functions.php file or a custom plugin should work once correctly populated:

    public function phpmailer_dkim( $phpmailer ) {
    	$phpmailer->DKIM_selector = 'phpmailer';
    	$phpmailer->DKIM_identity = $phpmailer->From;
    	$phpmailer->DKIM_passphrase = ''; // if key encrypted
    	$phpmailer->DKIM_domain   = 'mydomain.com';
    	$phpmailer->DKIM_private  = '/path/to/my/private.key';
    	$phpmailer->DKIM_private_string = ''; // string takes precedent over line above
    }
    add_action( 'phpmailer_init', 'phpmailer_dkim' );
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘DKIM Support’ is closed to new replies.