Facebook
From Edgy Octupus, 9 Years ago, written in PHP.
Embed
Download Paste or View Raw
Hits: 571
  1. function sendEmailMsg($msg_from,$msg_email,$email, $title, $msg)
  2.         {
  3.                 $headers .= "From: ".$msg_from." <".$msg_email.">\r\n";
  4.                 $headers .= "MIME-Version: 1.0\r\n";
  5.                 $headers .= "Content-type: text/html; charset=utf-8\r\n";
  6.  
  7.     //$res = mail($email, $title, $msg, $headers);
  8.                
  9.                
  10.                 $data['tytul'] = $title;
  11.                 $data['tresc'] = mysql_real_escape_string($msg);
  12.                 $data['email'] = $email;
  13.                 $data['data_dodania'] = time();
  14.                 $data['urltolog'] = $_SERVER['REQUEST_URI'];
  15.                 $data['server_host'] = $_SERVER['HTTP_HOST'];
  16.                
  17.                 $this->contents->table = 'mails_to_send';
  18.                 $this->contents->data = $data;
  19.                 $this->contents->insert();
  20.                  
  21.         }