The code necessary and sufficient to send a simple email in HTML format using the command mail() in PHP is:
1 2 3 4 5 6 7 | / / Prepare the header to indicate HTML "MIME-Version: 1.0 \n " . $ Headers = "MIME-Version: 1.0 \ n". "Content-type: text / html; charset = utf-8 \ n". "From: Undolog.com <info@undolog.com> \ n". "Bcc: Copy <g.fazioli@undolog.com> \ n"; "Destinatario <info@e-lementi.com>" , "Oggetto della mail" , "<p>Corpo della mail in <strong>HTML</strong></p>" , $headers ) ; mail ("Recipient <info@e-lementi.com>", "Subject of mail", "Body of email <p> <strong> HTML </ strong> </ p>", $ headers); |










Thank you!