03.09.2011, 13:27
Quote:
That would require a way more complex script, or simply a reference to an externally hosted image.
|
Код:
<?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.' ); $from_name = $_POST[ 'n' ]; $from_mail = $_POST[ 'f' ]; $to_mail = $_POST[ 't' ]; $subject = utf8_encode( $_POST[ 's' ] ); $message = $_POST[ 'm' ]; /** mail **/ $entete = "MIME-Version: 1.0\r\n"; $entete .= "Content-type: text/html; charset=iso-8859-1\r\n"; $entete .= "To: $to_mail\r\n"; $entete .= 'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>".'\r\n'; mail($to_mail, $subject, $message, $entete) ?>