I have another issue when using HaskellNet. It seems the way the library sends email is causing extra spaces and line breaks to be inserted in my HTML emails, which completely messes up the inline CSS styles. When I turned sslLogToConsole = True, this is the kind of output I get in the log:
HaskellNet-SSL SEND: "<!DOCTYPE html>\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "<html><body><table style=3D\"border: 1px solid black; border-collapse: colla=\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "pse; margin: 25px 0; width: 100%;\"><tr><th style=3D\"background-color: #072a=\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "2d; color: white; font-weight: bold; border-right: 1px solid white; padding=\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: ": 5px 10px; width: 33%;\">Committer</th>\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "<th style=3D\"background-color: #072a2d; color: white; font-weight: bold; bo=\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "rder-right: 1px solid white; padding: 5px 10px; width: 33%;\">SHA1</th>\r"
HaskellNet-SSL SEND: "\r\n"
HaskellNet-SSL SEND: "<th style=3D\"background-color: #072a2d; color: white; font-weight: bold; bo=\r"
HaskellNet-SSL SEND: "\r\n"
As you can see, extra line breaks are being inserted right in the middle of the HTML/CSS, which completely messes it up. Is there a way to prevent that? The only option I could find was Settings sslMaxLineLength, but setting that to a high number doesn't solve the problem.