Sending email with DKIM

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
yaddran
Posts: 1
Joined: 14 Oct 2017, 21:52

Sending email with DKIM

Post by yaddran »

I have to admit that I am a bit confused why support for DKIM is STILL not added. I am patching this for years. PHPMailer supports it for years now. Still every time I want to upgrade I need to patch it again. Yes, it is just a few copy/pastes but it would be really nice not to have to do it at all. It is so simple...

Just add few global configs in config_inc.php

Code: Select all

$g_DKIM_domain = 'example.com';
$g_DKIM_private = 'path/to/priv/key';
$g_DKIM_selector = 'mail.example;
$g_DKIM_passphrase = '';
$g_DKIM_identity = 'bt@example.com';
and patch email_send function in email_api.php:

Code: Select all

if ( !is_blank( config_get( 'DKIM_domain' ) ) ) {
    $t_mail->DKIM_domain = config_get( 'DKIM_domain' );
    $t_mail->DKIM_private = config_get( 'DKIM_private' );
    $t_mail->DKIM_selector = config_get( 'DKIM_selector' );
    $t_mail->DKIM_passphrase = config_get( 'DKIM_passphrase' );
    $t_mail->DKIM_identity = config_get( 'DKIM_identity' );
}
Is there a reason why this is not in yet?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Sending email with DKIM

Post by atrol »

yaddran wrote:Is there a reason why this is not in yet?
I searched this forum and our tracker https://www.mantisbt.org/bugs for "DKIM": No search result.
So the answer to your question seems to be quite simple: Because no one requested it.

If you want it in standard Mantis, just
- open a feature request at https://www.mantisbt.org/bugs
- send as a Pull Request at https://github.com/mantisbt/mantisbt
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Sending email with DKIM

Post by atrol »

Please use Search before posting and read the Manual
Post Reply