Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/util/mailer/mailer.php
<?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 AnUtilMailer extends KPatternDecorator
{
	/**
	 * 
	 * @return 
	 */
	static function factory()
	{
		$mailer = KFactory::tmp('lib.joomla.mailer');
		$mailer->to = array();
		return new AnUtilMailer( $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();	
	}
}
Return current item: Anahita Social Engine