From cc7ee36a66b3386a81cd3f7980851b2d93e1558d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20Borbo=C3=ABn?= <ponsfrilus@gmail.com>
Date: Mon, 11 Jan 2021 21:18:26 +0100
Subject: [PATCH] [fix] characters encoding in plain text email

---
 canapEPFL/helpers.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/canapEPFL/helpers.php b/canapEPFL/helpers.php
index f7941fc..b252f65 100644
--- a/canapEPFL/helpers.php
+++ b/canapEPFL/helpers.php
@@ -11,6 +11,7 @@ function mailToResp($surname, $name, $job){
       "Consulter la candidature sur: https://canap-gest.epfl.ch/";
 
   $headers = "From: $EMAIL_FROM\r\n" .
+      "Content-type: text/plain; charset=utf8\r\n" .
       "Reply-To: $EMAIL_REPLY_TO\r\n" .
       "X-Mailer: PHP/" . phpversion();
 
-- 
GitLab