diff --git a/staff/reminder.php b/staff/reminder.php index 56a7b93..78a59b5 100644 --- a/staff/reminder.php +++ b/staff/reminder.php @@ -14,14 +14,20 @@ { foreach ($emails as $row) { - $testo = "Ciao " . htmlspecialchars($row["nome"]) . ",
"; + $testo = ""; + if ($row["sesso"] === "M") { + $testo .= "Caro "; + } else { + $testo .= "Cara "; + } + $testo .= htmlspecialchars($row["nome"]) . ",
"; $testo .= "

"; $testo .= "Ti scriviamo per farti sapere che sono aperte le iscrizioni ad Amichiamoci $year!
"; $testo .= "Come fare a iscriversi? Clicca su queto link o copialo sul browser, facendo attenzione a copiare per bene tutti i caratteri:"; $testo .= "

"; $testo .= "" . ISCRIZIONI_URL . ""; $testo .= "

"; - $testo .= "Come puoi rimanere aggiornato? Seguendo la nostra pagina Instagram o il nostro canale WhatApp:"; + $testo .= "Come puoi rimanere aggiornato? Seguendo la nostra pagina Instagram o il nostro canale WhatsApp:"; $testo .= "

"; $testo .= "" . INSTAGRAM_URL . "
"; $testo .= "" . WHATSAPP_URL . "
";