From 7b561a0698076436b7a39a47f75b6767f8c43e07 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 27 Oct 2017 13:48:56 +0200 Subject: [PATCH] Add patch to use sendmail --- conf/config.php | 2 +- sources/patches/app-0001-Use-sendmail.patch | 31 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 sources/patches/app-0001-Use-sendmail.patch diff --git a/conf/config.php b/conf/config.php index 0ad9c95..2a37665 100644 --- a/conf/config.php +++ b/conf/config.php @@ -85,7 +85,7 @@ const TIME_EDIT_LINK_EMAIL = 60; // Config $config = [ /* general config */ - 'use_smtp' => false, // use email for polls creation/modification/responses notification + 'use_smtp' => true, // use email for polls creation/modification/responses notification /* home */ 'show_what_is_that' => false, // display "how to use" section 'show_the_software' => false, // display technical information about the software diff --git a/sources/patches/app-0001-Use-sendmail.patch b/sources/patches/app-0001-Use-sendmail.patch new file mode 100644 index 0000000..b10ef71 --- /dev/null +++ b/sources/patches/app-0001-Use-sendmail.patch @@ -0,0 +1,31 @@ +From 3ddf8c6c94d3e14566c50d57a457c8d7eaf7bb3c Mon Sep 17 00:00:00 2001 +From: Jean-Baptiste Holcroft +Date: Fri, 27 Oct 2017 13:21:44 +0200 +Subject: [PATCH] Use sendmail + +--- + app/classes/Framadate/Services/MailService.php | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/app/classes/Framadate/Services/MailService.php b/app/classes/Framadate/Services/MailService.php +index b7c60dc..f292e7e 100644 +--- a/app/classes/Framadate/Services/MailService.php ++++ b/app/classes/Framadate/Services/MailService.php +@@ -25,7 +25,7 @@ class MailService { + function send($to, $subject, $body, $msgKey = null) { + if ($this->smtp_allowed == true && $this->canSendMsg($msgKey)) { + $mail = new PHPMailer(true); +- $mail->isSMTP(); ++ $mail->IsSendmail(); + + // From + $mail->FromName = NOMAPPLICATION; +@@ -73,4 +73,3 @@ class MailService { + } + + } +- +\ No newline at end of file +-- +2.13.6 +