2

emailme

emailme
SYNOPSIS

emailme($subject, $msg, $from=false, $to=false)

DESCRIPTION
CODE
  1. function emailme($subject, $msg, $from=false, $to=false) {
  2.     global $webmaster, $mailer;
  3.  
  4.     if (!$from) {
  5.         $from = $webmaster;
  6.     }
  7.     if (!$to) {
  8.         $to = $webmaster;
  9.     }
  10.  
  11.     $headers = <<<_SEP_
  12. From: $from
  13. Return-Path: $from
  14. Content-Type: text/plain; charset=utf-8
  15. X-Mailer: $mailer
  16. _SEP_;
  17.  
  18.     return @mail($to, $subject, $msg, $headers);
  19. }
SEE ALSO

emailmefile, emailtext, emailcrypto, emailhtml

Comments

To add a comment, click here.