I have trouble with sending emails on my website.
Here is a code:
$to = '[email protected]' . ', ';
$to .= '[email protected]';
$subject = 'Potwierdzenie zakupu.';
$message = '$_POST[dostawa]';
$headers =
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=utf-8' . "\r\n" .
'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
When I put text in my message it's sending text but if I put some variables it's sending $_POST[dostawa]
I can print this variables before and after this code with echo.
Change from
into