<?php $oSendMail = new mySendMail(); $oSendMail->loadTemplate('emails/mytemplate', array('myvar' => $aEvent['post']['myvar'], 'another' => $sSomeString)); $oSendMail->addAddress('*****@*****.**'); $oSendMail->send();
<?php $oSendMail = new mySendMail(); $oSendMail->Subject = 'This is the subject'; $oSendMail->Body = 'Wonderful email from the Web:Extend team!'; $oSendMail->addAddress('*****@*****.**'); $oSendMail->send();