Contact form won't send email

I made a php contact form. It looks like everything is right but it simply won’t send the email like it is supposed to. I’m not sure what’s wrong. Any insights would be very helpful. TY.

www.laceandbling.com

[code]<?php

$name = $_POST[‘name’];
$email = $_POST[‘email’];
$comments = $_POST[‘comments’];
$to = "[email protected]";
$subject = “website email”;

mail ($to, $subject, $email, $comments, "From: " . $name);
echo “Your message has been sent”;

?>[/code]

Add this after the <?

[php]error_reporting(E_ALL);
ini_set(“display_errors”, 1);[/php]

Also check your SMTP Settings in your PHP.INI file

This is what my PHP.INI file has for SMTP:

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; SMTP = localhost
; smtp_port = 25

What host are you using? Using a library like PHPMailer lets you choose how mail is sent and lets you use other SMTP servers.

i’m using godaddy

Sponsor our Newsletter | Privacy Policy | Terms of Service