This library contains operations for sending emails. The implementation might need to be adapted to the local environment.
Author: Michael Hanus
Version: June 2023
sendMail
:: String -> String -> String -> String -> IO ()
Sends an email via mailx command. |
sendMailWithOptions
:: String -> String -> [MailOption] -> String -> IO ()
Sends an email via mailx command and various options. |
showSendMail
:: String -> String -> String -> String -> String
Shows the text (wth subject, sender, and recipient) of an email to be sent with the command sendMailWithOptions but actually does not send it. |
showSendMailWithOptions
:: String -> String -> [MailOption] -> String -> String
Shows the text (wth subject, sender, and recipient) of an email to be sent with the command sendMailWithOptions but actually does not send it. |
Options for sending emails.
Constructors:
CC
:: String -> MailOption
: recipient of a carbon copy
BCC
:: String -> MailOption
: recipient of a blind carbon copy
TO
:: String -> MailOption
: recipient of the email
Sends an email via mailx command.
|
Sends an email via mailx command and various options. Note that multiple options are allowed, e.g., more than one CC option for multiple recipient of carbon copies. Important note: The implementation of this operation is based on the command "mailx" and must be adapted according to your local environment!
|
Shows the text (wth subject, sender, and recipient) of an email to be sent with the command sendMailWithOptions but actually does not send it. This is useful for debugging or testing before really sending emails.
|
Shows the text (wth subject, sender, and recipient) of an email to be sent with the command sendMailWithOptions but actually does not send it. This is useful for debugging or testing before really sending emails.
|