Your IP : 216.73.217.69
<?php
/**
* Dobi System
*
* Terms of use and legal restrictions:
* PLEASE READ THESE TERMS ( www.dobi.pl/doc/license/ ) CAREFULLY BEFORE USING THIS PRODUCT.
* USING THIS PRODUCT INDICATES THAT YOU ACCEPT THESE TERMS.
* IF YOU DO NOT ACCEPT THESE TERMS , DO NOT USE THIS PRODUCT.
*
* PHP 5.1.2 and later
*
* @license www.dobi.pl/doc/license/ Dobi License 1.0
* @copyright Copyright (c) 2005-2006 Michał 'Cube' Daniel ( http://www.dobi.pl )
* @link www.dobi.pl
* @package Dobi Core
* @version 1.0, 2006/08/10 11:57
* @author Michał 'Cube' Daniel cube@dobi.pl
*
*/
class send
{
private $send_to;
private $send_from;
private $send_subject;
private $send_content;
public function __construct() {}
public function to( $to )
{
$this->send_to = $to;
}
public function from( $from )
{
$this->send_from = $from ;
}
public function subject( $subject )
{
$this->send_subject = $subject;
}
public function content( $content )
{
$this->send_content = $content;
}
public function massiveSend()
{
$to = $this->send_to;
if (!is_array($to)) return false;
foreach($to as $email)
{
@mail($email, $this->send_subject, $this->send_content, 'From: ' . $this->send_from . '\r\nReply-to: ' . $this->send_from);
}
return true;
}
public function send()
{
if(@mail($this->send_to, $this->send_subject, $this->send_content, 'From: ' . $this->send_from . '\r\nReply-to: ' . $this->send_from)) return true;
else return false;
}
}
?>