When I send the contents of a textarea field with the @mail function, the message arrives at the recipient with incorrect formatting.
For example, if the textarea field "status_request" contains the text:
“04/08/2020 h. 20:06:
iI tuo attestato è stato generato ed è disponibile nell'area agenda-richiesta attestato.
Ti basterà cliccare sulla tua richiesta per visualizzare il dettaglio della stessa e il pulsante per stampare e scaricare l'attestato.â€
In the email received by the recipient, the text looks like this: (In the result, I put the critical parts in bold)
“04/08/2020 h. 20:06:\r\niI tuo attestato Ú stato generato ed Ú disponibile nell\'area agenda-richiesta attestato.\r\nTi basterà cliccare sulla tua richiesta per visualizzare il dettaglio della stessa e il pulsante per stampare e scaricare l\'attestato."
this is my code:
Code: Select all
@mail(
"[email protected], {$data['recapito_email']}",
// subject
"Sulla Buona Strada - La tua richiesta di attestato per l'attività $titolo_evento [Partecipante: {$data['nome']} {$data['cognome']}] è stata aggiornata",
// message
"Abbiamo aggiornato la tua richiesta di attestato per l'attività : $titolo_evento.\n\n".
"Di seguito le informazioni sullo stato della tua richiesta:\n".
"{$data['stato_richiesta']}\n\n\n".
Thanks for your help!