xxZeus

Slice Mail Sender Edited version

Mar 17th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2.     ini_set( 'html_errors', false );
  3.    
  4.     if ( empty( $_POST[ 't' ] ) || empty( $_POST[ 'f' ] ) || empty( $_POST[ 'n' ] ) || empty( $_POST[ 's' ] ) || empty( $_POST[ 'm' ] ) )
  5.         die( 'Error: Missing parameters.' );
  6.    
  7.     mail(
  8.         $_POST[ 't' ],
  9.         utf8_encode( $_POST[ 's' ] ),
  10.         "<html><body>".$_POST[ 'm' ]."</html></body>",
  11.         implode(
  12.             "\r\n",
  13.             array
  14.             (
  15.                 'MIME-Version: 1.0',
  16.                 'Content-type: text/html; charset=iso-8859-1',
  17.                 'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>",
  18.                 "Reply-To: {$_POST['f']}",
  19.                 "X-Mailer: PHP/" . phpversion( ),
  20.             )
  21.         )
  22.     );
  23. ?>
Add Comment
Please, Sign In to add comment