To be honest, don't see the problem 🙂) But it may lie in:
a) the actual sendmail configuration
b) wrong use of the mail function
c) if you are not doing it now, then do this: get all the text in a variable, replacing all the <br> tags with \n tags and try again 🙂