Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set( 'html_errors', false );
- if ( empty( $_POST[ 't' ] ) || empty( $_POST[ 'f' ] ) || empty( $_POST[ 'n' ] ) || empty( $_POST[ 's' ] ) || empty( $_POST[ 'm' ] ) )
- die( 'Error: Missing parameters.' );
- mail(
- $_POST[ 't' ],
- utf8_encode( $_POST[ 's' ] ),
- "<html><body>".$_POST[ 'm' ]."</html></body>",
- implode(
- "\r\n",
- array
- (
- 'MIME-Version: 1.0',
- 'Content-type: text/html; charset=iso-8859-1',
- 'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>",
- "Reply-To: {$_POST['f']}",
- "X-Mailer: PHP/" . phpversion( ),
- )
- )
- );
- ?>
Add Comment
Please, Sign In to add comment