diff --git a/server/src/emailTemplate.js b/server/src/emailTemplate.js index 21e4d13..aa158d7 100644 --- a/server/src/emailTemplate.js +++ b/server/src/emailTemplate.js @@ -66,6 +66,22 @@ export function buildInvitationEmail({ rencontre, baseUrl, texts = {} }) { ? `
${escML(text)}
` : ''; + // "Bulletproof" CTA button. Outlook (Word engine) ignores padding and + // display:inline-block on , collapsing the button to a plain link, so + // it needs a VML roundrect. Other clients get the styled , sized with + // a fixed width + line-height (not padding) so both paths match. The + // conditional comments are inert HTML comments in normal renderers. + const ctaButton = (url, label) => ` + + + ${label} + `; + const html = ` @@ -114,7 +130,7 @@ export function buildInvitationEmail({ rencontre, baseUrl, texts = {} }) {
- Je m'inscris à la rencontre + ${ctaButton(inscriptionUrl, "Je m'inscris à la rencontre")}
Réservé aux membres à jour de leur adhésion pour la saison en cours.