-- -- SmtpMail.Send invocation example -- module Mail where import NET sendMail :: String -- fromAddr -> String -- toAddr -> String -- subject -> String -- body -> IO () sendMail fromAddr toAddr subj body = invokeStatic_ "System.Web.Mail.SmtpMail" "Send" (fromAddr,toAddr,subj,body) test from toA = do sendMail from toA "Testing the hs-dotnet interop " "It is working as expected."