EDIT:
ini_set("SMTP", "mail.**.com");
ini_set("stmp_port", "25");
ini_set('sendmail_from', '@.com');
if(isset($POST['submit'])) {
$msg = 'Email: ' .$POST['email'];
$title = $POST['title'];
$email = $POST['email'];
$to = '***@hotmail.com';
$picture = $_POST['picture'];
mail('$to', '$title', '$picture', 'From:' . $email);
header('location: submitted.php');
} else {
exit(0);
header('location: ./index.php');
}
?>
Also tried the other SMTP port, didnt work either. Don't know what to do :/