This question already has an answer here:
Hi I'm wrinting a simple mail script in PHP
- Of what that I found every one says its probably a whitespace in front of
But as you can see I can't find anything like the solutions on the internet in my code...
The error says : output started at /customers/e/e/5//httpd.www/email.php:1)
<?php
$to = '...@gmail.com';
$subject = $_POST['subject'];
$message = $_POST['message'];
$firstName = $_POST['firstName'];
$lastName = $_POST['lastName'];
$email = $_POST['email'];
mail($to, "Contact www....com: $subject", "Gecontacteerd van de website: www.....com
Zender: $firstName $lastName
Bericht: $message", "From: $email");
header("Location:http://www.....com");
exit;
?>
</div>