\n"; // Adding the From field // $headers = $headers."MIME-Version: 1.0\n"; // Adding the MIME version $headers = $headers."Content-type: text/plain; charset=iso-8859-1\n"; // Add the type of encoding // Call the mail function if ( mail($to, $subject, $message, $headers) == TRUE ) { echo "Mail sent."; } else { echo "Error: The message could not be sent."; } ?>