What are the potential issues with using ISO 8859-1 encoding for the mail() function in PHP on an iPhone?

Using ISO 8859-1 encoding for the mail() function in PHP on an iPhone can lead to encoding issues, as iPhones typically use UTF-8 encoding. To ensure proper display of special characters on iPhones, you should use UTF-8 encoding when sending emails through the mail() function in PHP.

// Set the email headers to use UTF-8 encoding
$headers = 'Content-Type: text/html; charset=UTF-8' . "\r\n";
$headers .= 'From: Your Name <your_email@example.com>' . "\r\n";

// Send the email using UTF-8 encoding
mail($to, $subject, $message, $headers);