Try... Instead of reading "data" into a String, read it into a javax.mail.internet.InternetHeaders (still must do folding/unfolding manually though).
Log in to post a comment.