[Haskell-beginners] Using tls-extra for simple smtp

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Jul 4 11:56:36 CEST 2012


On Tue, 03 Jul 2012 17:16:37 +0200, Sarfraz K. <dragoon.empire at yahoo.fr>  
wrote:

> I am trying to write a simple script to send a mail via my gmail account.
:
>     test1 = do h <- connectTo server (PortNumber (fromIntegral port))
>                hSetBuffering h NoBuffering
>                write h "EHLO"
>                write h "STATTLS"
>                listen h

I am not an expert in this matter, but I think you must change the line
>                write h "STATTLS"
to:
>                write h "STARTTLS"

Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--



More information about the Beginners mailing list