To solve the problem, you need to add the following line to the email sending function:
$headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n";
Here is the integration of this line with the email function:
function send_email($to,$subject,$message,$fromemail) { $headers = "From: $fromemail" . "\r\n"; $headers .= "Return-Path: $fromemail" . "\r\n"; $headers .= "Errors-To: $fromemail" . "\r\n"; $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n"; @mail($to,$subject,$message,$fromemail); }
J rem source share