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("mail@domain.com");
$mail->AddRecipient("copy@domain.com", SMMailRecipientType::$Bcc);
$mail->SetSubject("This is my first HTML e-mail");
$mail->SetContent("<b>Hi Casper</b><br>Thank you for using Sitemagic CMS.");
$mail->Send();