<div dir="ltr">Thanks, that makes sense. Out of curiosity, which one do you use with HsOpenSSL?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 4:23 PM, Donn Cave <span dir="ltr"><<a href="mailto:donn@avvanta.com" target="_blank">donn@avvanta.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">quoth David Escobar <<a href="mailto:davidescobar1976@gmail.com">davidescobar1976@gmail.com</a>><br>
<span class=""><br>
> No explicit mention is made anywhere in the documentation about TLS or even<br>
> SSL, so perhaps not? Some libraries I've come across specifically mention<br>
> that they don't support TLS or SSL. Being relatively new to this part of<br>
> Haskell, what is the most standard library the community uses for email<br>
> that supports modern protocols such as those used by GMail? Thanks.<br>
<br>
</span>I'm not going to guess what the community is up to, but it seems<br>
to me like the least novel way to get there would be an SSL connection<br>
to port 465, using HsOpenSSL, and use the library you were already using<br>
for SMTP.<br>
<br>
I do that, essentially, though with home rolled stuff for various<br>
not very interesting reasons.  So I haven't tried these two packages,<br>
but I can assure you that the principle works with gmail.<br>
<br>
If your SMTP package won't accept some kind of generic I/O channel<br>
and insists on making and using its own socket connection, then<br>
you'll need something else.  Ideally, it would provide pure functions<br>
for SMTP parsing and protocol interpretation, and you could do the<br>
I/O stuff yourself via whatever channel you wish, but that pure/io<br>
structural division seems surprisingly rare among Haskell network<br>
application packages.<br>
<span class="HOEnZb"><font color="#888888"><br>
        Donn<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>