Module "Mail.curry"

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

Constructors:
BCC | CC | TO

Functions:
sendMail | sendMailWithOptions


 Summary of exported functions:

sendMail  :: String -> String -> String -> String -> IO ()  deterministic 
          Sends an email via mailx command.
sendMailWithOptions  :: String -> String -> [MailOption] -> String -> IO ()  deterministic rigid
          Sends an email via mailx command and various options.

 Imported modules:

IO
IOExts
List
Prelude

 Exported datatypes:

MailOption

Options for sending emails.

Constructors:

CC :: String -> MailOption

CC - recipient of a carbon copy

BCC :: String -> MailOption

BCC - recipient of a blind carbon copy

TO :: String -> MailOption

TO - recipient of the email



 Exported functions:

sendMail :: String -> String -> String -> String -> IO ()  deterministic 

Sends an email via mailx command.

Example call:  (sendMail from to subject contents)

Parameters:
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

sendMailWithOptions :: String -> String -> [MailOption] -> String -> IO ()  deterministic rigid

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)

Parameters:
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


Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Nov 9 18:05:39 2009