Does anybody know of any good libraries I can use to send a mail via SMTP from Haskell? I found SMTPClient
and HaskellNet
. The former does not support TLS
and the latter does not seem to have examples for using TLS to send an email via SMTP. Did anybody manage to do that?
Asked
Active
Viewed 2,091 times
33

Chris Stryczynski
- 30,145
- 48
- 175
- 286

Salil
- 9,534
- 9
- 42
- 56
-
Not an answer, but some I've added info that might be useful here: http://stackoverflow.com/questions/11311036/using-tls-extra-for-simple-smtp – mhwombat Oct 17 '12 at 15:39
-
@mhwombat, thank you. it look like the support is not there yet. But, I am sure it exists in some form in hackage where it just needs to be tweaked. – Salil Oct 19 '12 at 01:58
-
Have yo tried: (HaskellNet-SSL)[http://hackage.haskell.org/package/HaskellNet-SSL-0.1.1.1]. – Edgar Klerks Dec 27 '13 at 19:08
-
Though I didn't try it myself, you might want to take a look at [hs-tls](https://github.com/vincenthz/hs-tls) and [hs-connection](https://github.com/vincenthz/hs-connection). The latter looks quite promising for solving your problem. – rc0r Jan 03 '14 at 12:53
-
Are you asking about sending SMTP in general, or is there something particular with Google that is causing problems? – thecoshman Jan 10 '14 at 16:02
-
@thecoshman, it is the TLS part. – Salil Jan 11 '14 at 17:59
1 Answers
2
Read This Pages :
http://hackage.haskell.org/package/HaskellNet-SSL-0.2.1/docs/Network-HaskellNet-SMTP-SSL.html
Easily Connector :)
https://github.com/dpwright/HaskellNet-SSL
Maybe this can help you!
Set Your Username And Password:
By send commands
sendCommand :: SMTPConnection -> Command -> IO (ReplyCode, ByteString)