Hello, I recently started a new website and I want the user to be able to mail me through a web form.
I've set the form up and this is the processing, but it does not work. Anyone know what I should do ?

ini_set("SMTP", "mail.*****.com");
if(isset($_POST['submit'])) {
$msg = 'Email: ' .$_POST['email'];
$title = $_POST['title'];
$email = $_POST['email'];
$to = ******';
$picture = $_POST['picture'];

mail('$to', '$title', '$picture', 'From:' . $email);
header('location: submitted.php');
} else {
header('location: ./index.php');