
4 Jul
2012
4 Jul
'12
5:56 a.m.
On Tue, 03 Jul 2012 17:16:37 +0200, Sarfraz K.
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 --