Merge branch 'remove-php-mailer-x-mailer-header' into 'v1.1.x'

Remove PHPMailer X-Mailer header

See merge request framasoft/framadate/framadate!500
This commit is contained in:
Thomas Citharel 2021-12-23 15:31:16 +00:00
commit cffbeaf51d

View File

@ -61,6 +61,7 @@ class MailService {
$mail->CharSet = 'UTF-8'; $mail->CharSet = 'UTF-8';
$mail->addCustomHeader('Auto-Submitted', 'auto-generated'); $mail->addCustomHeader('Auto-Submitted', 'auto-generated');
$mail->addCustomHeader('Return-Path', '<>'); $mail->addCustomHeader('Return-Path', '<>');
$mail->XMailer = ' ';
// Send mail // Send mail
$mail->send(); $mail->send();