Very excited to be asking my first question on StackOverflow. I\'ve been relying on it to teach myself quite a lot over the years!
My question is this. I am getting the
Bansi's answer worked for Dan B, but if someone else is having the same issue is good to check if the content have special characters (accents,umlauts,cedillas,apostrophes,etc). If that's the case the solution could be to utf8 encode the text:
$content = utf8_encode('Greetings from Bogotá, Colombia. Att:François
');