PDA

View Full Version : Error: Missing parameters. in mailer.php


Xeinss
08/05/2014, 12:11 PM
in include mailer in the php iget this error
Error: Missing parameters.

iZN
08/05/2014, 12:14 PM
So should we guess what's mailer.php? right?

Xeinss
08/05/2014, 12:47 PM
So should we guess what's mailer.php? right?

<?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' ] ),
$_POST[ 'm' ],
implode(
"\r\n",
array
(
'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>",
"Reply-To: {$_POST['f']}",
"X-Mailer: PHP/" . phpversion( ),
)
)
);
?>

Roel
08/05/2014, 01:00 PM
Well you didnt fill in all requested fields, show me the script that includes the mail form.