Line 158:
The Content-Type of the sent-out emails was somehow part of the body instead of the header, so extended ASCII and intl. chars. looked cryptic. Line 158 changed to
$headers = "MIME-Version: 1.0\n" . "Content-Type: text/plain; charset=UTF-8\n\n";
Line 163:
Setting the visitor's/subscriber's email as sender (From) may be problematic in case the domain has an SPF / TXT record. It is better to use our own email address as both sender and recipient and to add our visitor's email as Reply-To.
$sentMail = mail($mailto,$subject,$newMsg,"Reply-To: $email\r\nFrom: $mailto\r\n$headers");
Line 194:
To make the confirmation page look nice with extended ASCII or intl. chars. too, a new line was added between line 193 and 194.
<meta http-equiv="content-type" content="text/html; charset=UTF-8">