Checkpoint: Correction du bug d'importation des invitations Outlook (ICS) - ajout de l'encodage UTF-8 explicite et des en-têtes corrects pour les pièces jointes calendrier
This commit is contained in:
@@ -109,7 +109,7 @@ export async function sendInscriptionConfirmation(params: {
|
||||
// Générer une invitation ICS pour chaque date
|
||||
const attachments = isConfirmed ? params.dates.map((date, index) => ({
|
||||
filename: `invitation_date_${date.ordre}.ics`,
|
||||
content: generateFormationICS({
|
||||
content: Buffer.from(generateFormationICS({
|
||||
formationNom: params.formationNom,
|
||||
sessionNom: `${params.sequenceNom} - Date ${date.ordre}`,
|
||||
dateDebut: date.dateDebut,
|
||||
@@ -118,8 +118,8 @@ export async function sendInscriptionConfirmation(params: {
|
||||
apprenantNom: params.apprenantNom,
|
||||
apprenantPrenom: params.apprenantPrenom,
|
||||
apprenantEmail: params.apprenantEmail,
|
||||
}),
|
||||
contentType: 'text/calendar',
|
||||
}), 'utf-8'),
|
||||
contentType: 'text/calendar; charset=utf-8; method=REQUEST',
|
||||
})) : undefined;
|
||||
|
||||
// Préparer les variables pour le remplacement (avec alias pour compatibilité)
|
||||
|
||||
8
todo.md
8
todo.md
@@ -1662,4 +1662,12 @@
|
||||
- [x] Ajouter la vérification du paramètre notificationsActives avant chaque envoi (3 endroits)
|
||||
- [x] Mettre à jour la description du paramètre dans l'interface admin pour clarifier son rôle
|
||||
- [x] Déployer sur TEST pour validation
|
||||
- [x] Déployer sur PROD
|
||||
|
||||
## BUG - Invitations Outlook (ICS) ne s'ouvrent pas
|
||||
|
||||
- [x] Analyser le fichier ICS fourni (encodage incorrect)
|
||||
- [x] Corriger l'encodage UTF-8 et les en-têtes dans emailService.ts
|
||||
- [ ] Tester avec Outlook pour valider l'importation
|
||||
- [x] Déployer sur TEST
|
||||
- [ ] Déployer sur PROD
|
||||
|
||||
Reference in New Issue
Block a user