Outgoing E-mails from a Website
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 ?
<?php
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');
exit(0);
}
?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks