Left e -> putStrLn $ "Exception caught: " ++ (displayException e)
Right _ -> putStrLn "Sent email successfully."
The program compiles, but when I run it, I get:
Exception caught: <socket: 49>: Data.ByteString.hGetLine: end of file
I tried using the TLS port of 587, but then I just get an authentication failure. Am I using the wrong library or is it just the wrong configuration. Thanks.