This library contains functions for sending emails.
The implementation might need to be adapted to the local
environment.
Author: Michael Hanus
Version: May 2007
| Exported names: |
Datatypes:
MailOption
Functions:
sendMail
| sendMailWithOptions
| Summary of exported functions: |
|
||
|
| Imported modules: |
| Exported datatypes: |
Options for sending emails.
Constructors:
:: String -> MailOption
CC - recipient of a carbon copy
:: String -> MailOption
BCC - recipient of a blind carbon copy
:: String -> MailOption
TO - recipient of the email
| Exported functions: |
:: String -> String -> String -> String -> IO ()
Sends an email via mailx command.
Example call: (sendMail from to subject contents)
from
- the email address of the sender
to
- the email address of the recipient
subject
- the subject of the email
contents
- the contents of the email
:: String -> String -> [MailOption] -> String -> IO ()
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!
Example call: (sendMailWithOptions from subject options contents)
from
- the email address of the sender
subject
- the subject of the email
options
- send options, e.g., multiple recipients
contents
- the contents of the email