ACC SHELL
<?php
class SimpleMail
{
var $to;
var $from;
function SimpleMail($from="",$to="")
{
$this->to = $to;
$this->from = $from;
}
function setTo($to)
{
$this->to = $to;
}
function getTo()
{
return $this->to;
}
function setFrom($from)
{
$this->from = $from;
}
function getFrom()
{
return $this->from;
}
function Send($text,$subject)
{
$headers .= "From: ".$this->from."\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=\"utf-8\"\n";
return @mail($this->to, $subject, $text ,$headers);
}
function directSend($from,$to,$text,$subject)
{
$headers .= "From: ".$from."\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=\"utf-8\"\n";
return @mail($to, $subject, $text ,$headers);
}
}
?>
ACC SHELL 2018