Page 1 of 1
phpmailer - certificates
Posted: 07 May 2019, 09:26
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.
Re: phpmailer - certificates
Posted: 07 May 2019, 20:46
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
Re: phpmailer - certificates
Posted: 08 May 2019, 16:45
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 = '';
Re: phpmailer - certificates
Posted: 09 May 2019, 21:27
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
Re: phpmailer - certificates
Posted: 16 May 2019, 09:24
by atrol