Skip to content
Snippets Groups Projects
Commit f03cf229 authored by Nicolas Dubois's avatar Nicolas Dubois
Browse files

Ajout de la profession dans l'email aux responsables

parent a1765760
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
insertFiles($pdo, $candidateData->fichiers, $candidateId, $candidateData->rootpath);
if ($SENDEMAILS) {
mailToResp($candidateData->prenomApprenti, $candidateData->nomApprenti);
mailToResp($candidateData->prenomApprenti, $candidateData->nomApprenti, $candidateData->formation);
mailToApprenti($candidateData->mailApprenti);
}
// kill session
......
<?php
#region [Mail Sendings]
function mailToResp($surname, $name){
function mailToResp($surname, $name, $job){
require_once("templates/mails/mailToResp.php");
mail($to, $subject, $message, $headers);
}
......
......@@ -2,7 +2,8 @@
$to = 'formation.apprentis@epfl.ch';
$subject = 'Nouvelle Candidature';
$message = "Candidat: ".$surname." ".$name."\n\n".
$message = "Candidat: ".$surname." ".$name."\r\n".
"Profession: ".$job."\r\n".
"Consulter la candidature sur: https://canap-gest.epfl.ch/";
$headers = 'From: noreply+formulaireApprentis@epfl.ch' . "\r\n" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment