# These routines use sendmail to easily send email from the server.
# Because of this they require a *nix server.
 
use Mail;
 
# addresses default to general <general@coralcoast.com>
# if just 'a name', creates 'a name <a_name@coralcoast.com>'
Mail::post(
    FROM=> 'Paul',
    TO=> 'My Name <me@coralcoast.com>',
    CC=> 'Archive',
    BCC=> 'a@b.com,c@d.com,e@f.com',
    SUBJECT=> 'This is the subject line',
    HTML=> '<HTML><BODY>Hi!</BODY></HTML>',
    TEXT=> 'a text message',# defaults to HTML text
  );
 
# During processing on the site there are often times when notification
# needs be sent to the webmaster. These routines not only send the
# message requested but the command parameters and environment.
# post messages, CGI::commands & %ENV to error@coralcoast.com
Mail::notification( 'type', $msg1, $msg2, ...);
Mail::errorNotification( $msg1, $msg2, ...);