If I build a mail “body” with text that has newlines, like “foo\nfum”, it displays as two lines in a mail popup on iOS and on most Androids … but not on a Kindle Fire. There, it (and “foo\n\nfum”) appear as “foo fum”
(i.e., the line breaks (newlines) are being ignored on the Kindle Fire.)
I’m about to implement a workaround: use “html” style email if I’m on kindle (I’d emit: “foo<br>fum”),
but I was wondering if anyone had found a better/simpler solution.
Bear in mind that Amazon uses the open source version of Android to build their Kindle Fire OS. They likely have a bug if they are not handling plain text messages correctly. You could also try \m\r which is a Windows new line combination or you could also try putting in actual string.char(10) in case they simply are not parsing the \r sequence.
But if you’re sending it, there isn’t much of a reason to not use HTML. Almost all email clients can handle it today.
Bear in mind that Amazon uses the open source version of Android to build their Kindle Fire OS. They likely have a bug if they are not handling plain text messages correctly. You could also try \m\r which is a Windows new line combination or you could also try putting in actual string.char(10) in case they simply are not parsing the \r sequence.
But if you’re sending it, there isn’t much of a reason to not use HTML. Almost all email clients can handle it today.