Send e-mails using Sitemagic CMS

Sending both ordinary text e-mails and e-mails containing rich formatting is quite simple using the SMMail class within Sitemagic CMS. Here is a small sample to demonstrate the creation of an HTML e-mail.
$mail = new SMMail(SMMailType::$Html);
$mail->AddRecipient("", SMMailRecipientType::$Bcc);
$mail->SetSubject("This is my first HTML e-mail");
$mail->SetContent("<b>Hi Casper</b><br>Thank you for using Sitemagic CMS.");