Blame view

libs/backup_mail.php 388 Bytes
42868d70   andryeyev   Создал GIT
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);
       }
  }
  
  ?>