Logo white

Administrator / extrem

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • extrem
  • libs
  • backup_mail.php
  • Создал GIT
    42868d70
    andryeyev authored
    2015-11-23 15:44:29 +0200  
    Browse Code »
backup_mail.php 388 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php

class Mail{

     function str_rus($str){
             return convert_cyr_string($str,"w","k");
     }

     function send($email,$email_to,$title = '',$msg = ''){
        $headers="MIME-Version: 1.0\n";
        $headers.="Content-type: text/xml; charset=\"koi8-r\"\n";
        $headers.="From: $email_to<$title>\n";

        return mail($email,$title,$msg,$headers);
     }
}

?>