 <p>Yor problem is here: <code>$message = wordwrap($message, 70, "\r\n");</code> you neet to add <code>.=</code> <br><br> It is the same as <code>$message = $message . "wordwrap($message, 70, "\r\n")";</code></p>