I'm having a very strange issue I've never encountered before with the mail() function in php when trying to send html.
My issue is that when I'm trying to send the text "GBI - Credit Note Testing" there is no errors but I am also not receiving the email. The weird part about it, is that it is specific to the text I am trying to send, for example, if I change the text to "GBI - Note Testing" there is no issue, or even "GBI - Credi Note Testing" (note the missing 't') works too.
Changing the text works fine it's just the specific sentence is not working and it's really confused me.
$message = "<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<table>
<tr>
<td>GBI - Credit Note Testing
</td>
</tr>
</table>
</body>
</html>";
$to = $email;
$subject = "Test";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-Type: text/html; charset=ISO-8859-1' . "\r\n";
$headers .= "From: Me"."\r\n";
mail($to,$subject,$message,$headers);
Im expecting this text to be sent with no issues but it only sends when I change the text