WebBasic CMS
References

wbMail()

function send mail

wbMail bool(string $sender , string $receiver , string $subject , string $message [, array $attachments ])
wbMail bool(string $sender , array $receivers , string $subject , string $message [, array $attachments ])

Function wbMail designed to send email messages. In case of successful sending returns true , if sending a message failed, it returns false .

Function wbMail() uses the phpmailer.class

<?php
$msg=wbGetTpl("mail.php"); 
$msg=$msg->outerHtml(); 
$res=wbMail( 
    "from@email.loc;SenderName" 
    "to@email.loc;ReceiverName" 
    "Subject" 
    $msg //mail message in HTML format 
    array("/img/attach1.jpg""/img/attach2.jpg") 
); 
if ($res) { 
    echo "OK!"; 
} else { 
    echo "Error ".$_ENV["error"]; 
}
?>