<?php
/**
* @version 1.0.0
* @category Anahita Social Engineâ¢
* @copyright Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class AnUtilEmail extends KPatternDecorator
{
/**
*
* @return
*/
static function factory()
{
return new AnUtilEmail( KFactory::tmp('lib.joomla.mailer') );
}
/**
*
* @return
* @param $body Object
*/
public function setBody($body)
{
$body = (string) KFactory::get('lib.anahita.uikit.email.html')->assign('body', $body);
$this->getObject()->setBody("\n".$body);
}
/**
*
* @return
*/
public function send()
{
return $this->getObject()->Send();
}
}