phpmailer - certificates

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Tomek
Posts: 6
Joined: 07 May 2019, 09:21

phpmailer - certificates

Post by Tomek »

PHPMailer has options to sign mails with certifiacate, but mantis doesn´t support this option. Is this already planned? I think it is very small change.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: phpmailer - certificates

Post by atrol »

Tomek wrote: 07 May 2019, 09:26 Is this already planned?
Seems no, at least I did not find report for it at https://www.mantisbt.org/bugs
Tomek wrote: 07 May 2019, 09:26I think it is very small change.
The best way would be to create a report for it and send a pull request with the change on https://github.com/mantisbt/mantisbt
Please make sure that your submissions adhere to our Coding Guidelines http://www.mantisbt.org/wiki/doku.php/m ... guidelines
Please use Search before posting and read the Manual
Tomek
Posts: 6
Joined: 07 May 2019, 09:21

Re: phpmailer - certificates

Post by Tomek »

I would suggest in email_api.php at the end of section "case PHPMAILER_METHOD_SMTP:"

$t_mail->sign(config_get_global('cert_filename'), config_get_global('key_filename'), config_get_global('key_pass'), config_get_global('extracerts_filename '));

And in config_defaults_inc.php
/**
* Path to mail certification file
*
* @global string $g_cert_filename
*/
$g_cert_filename = '';

/**
* Path to mail private key file
*
* @global string $g_key_filename
*/
$g_key_filename = '';

/**
* mail private key pass
*
* @global string $g_key_pass
*/
$g_key_pass = '';

/**
* Path to mail extra certification file
*
* @global string $g_sign_extracerts_file
*/
$g_sign_extracerts_file = '';
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: phpmailer - certificates

Post by atrol »

atrol wrote: 07 May 2019, 20:46The best way would be to create a report for it and send a pull request
Example for a similar request
https://www.mantisbt.org/bugs/view.php?id=23493
https://github.com/mantisbt/mantisbt/co ... bbbe987d63
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: phpmailer - certificates

Post by atrol »

Please use Search before posting and read the Manual
Post Reply