-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple SMTP Client -- -- A very simple SMTP Client library for sending emails. @package hsmtpclient @version 1.0 -- | A very simple SMTP Client library for sending emails. module Network.SMTP.Client.HSmtpClient -- | Send an email using a SMTP email server. -- --
--   example = do
--    r <- sendStringAsEmail 
--                 "pippo  "                  -- user
--                 "pluto"                    -- password
--                 PlainSMTPAuth              -- Auth method
--                 "pippo@qwerty.org"         -- from
--                 "paperina@qwerty.org"      -- to
--                 "test"                     -- subject
--                 ""                         -- cc
--                 ""                         -- bcc
--                 "mail.qwerty.org"          -- stmp_server
--                 25                         -- default SMTP port
--                 "localhost"                -- user domain 
--                 "This is a test"           -- content
--                 ["paperina@qwerty.org",    -- rcpt_lines
--                  "minni@qwery.it.it"]      
--   
--    case r of 
--      True -> putStrLn "Success"
--      False -> putStrLn "Fail"
--   
sendStringAsEMail :: String -> String -> SMTPAuthMethod -> String -> String -> String -> String -> String -> String -> PortNumber -> String -> String -> [String] -> IO (Bool) -- | if True then display debug info -- -- SMTP authorization method data SMTPAuthMethod PlainSMTPAuth :: SMTPAuthMethod LoginSMTPAuth :: SMTPAuthMethod NoSMTPAuth :: SMTPAuthMethod