| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/nhadatkhangdien.net-bk/public_html/admin/lib/ |
Upload File : |
<?php
class my_email{
var $to;
var $sender;
var $subject;
var $content;
var $header;
function Email($a = array()){
if( count($a)>0)
$this->set($a);
}
function set($a = array()){
foreach($a as $k=>$v)
$this->$k = $v;
}
function send(){
if(!isset($this->header)){
$this->header = "MIME-Version: 1.0\r\n";
$this->header .= "Content-type: text/html; charset=utf-8 \r\n";
}
if(isset($this->sender)){
$this->header .= "From: ".$this->sender."\r\n";
#$headers .= "From: Birthday Reminder <nthaih@yahoo.com>\r\n";
#$headers .= "Cc: birthdayarchive@example.com\r\n";
#$headers .= "Bcc: birthdaycheck@example.com\r\n";
#$headers .= "Cc: birthdayarchive@example.com\r\n";
}
return @mail($this->to, $this->subject, $this->content, $this->header);
}
}
?>