<div dir="ltr">Hi Daniel,<div>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 <b>sslLogToConsole = True</b>, this is the kind of output I get in the log:</div><div><br></div><div><div><b>HaskellNet-SSL SEND: "<!DOCTYPE html>\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "<html><body><table style=3D\"border: 1px solid black; border-collapse: colla=\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "pse; margin: 25px 0; width: 100%;\"><tr><th style=3D\"background-color: #072a=\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "2d; color: white; font-weight: bold; border-right: 1px solid white; padding=\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: ": 5px 10px; width: 33%;\">Committer</th>\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "<th style=3D\"background-color: #072a2d; color: white; font-weight: bold; bo=\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "rder-right: 1px solid white; padding: 5px 10px; width: 33%;\">SHA1</th>\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div><div><b>HaskellNet-SSL SEND: "<th style=3D\"background-color: #072a2d; color: white; font-weight: bold; bo=\r"</b></div><div><b>HaskellNet-SSL SEND: "\r\n"</b></div></div><div><br></div><div>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 <b>Settings</b> <b>sslMaxLineLength</b>, but setting that to a high number doesn't solve the problem.</div><div><br></div><div>Thanks,</div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 12:00 AM, Daniel P. Wright <span dir="ltr"><<a href="mailto:dani@dpwright.com" target="_blank">dani@dpwright.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Bardur,<div><br></div><div>Ah, ok, that makes sense.  Thanks for the clarification.</div><div><br></div><div>-Dani.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-04-20 15:56 GMT+09:00 Bardur Arantsson <span dir="ltr"><<a href="mailto:spam@scientician.net" target="_blank">spam@scientician.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 04/20/2016 08:32 AM, Daniel P. Wright wrote:<br>
> Hello David,<br>
><br>
>> The only thing I noticed with Gmail is that in order to work it requires<br>
> the sender's account to toggle this setting:<br>
>> Allow less secure apps: OFF<br>
><br>
> That does sound unusual!  Is my understanding you correctly that HaskellNet<br>
> doesn't work UNLESS you disallow less secure apps?  Or is it the other<br>
> (more intuitive) way round? (i.e. HaskellNet is being considered a "less<br>
> secure" app and thus being disallowed).<br>
<br>
</span>It's not particularly sinister...<br>
<br>
It's is simply that IMAP/SMTP do not have authentication options that<br>
are "secure enough" for Google[1]. Or perhaps rather that they at least<br>
must allow less secure authentication options per their respective<br>
standards/RFCs.<br>
<br>
Regards,<br>
<br>
[1] Basically they don't enforce two-factor auth.<br>
<div><div><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>