Sendmail function does not work

Status
Not open for further replies.

winwizard

New Member
Messages
2
Reaction score
0
Points
0
I have tried to send mail with a form i created there are no error codes but i don't recieve the message here is the link to the page http://winwizard.x10.mx/testform.php here is the script i use
Code:
<?php
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
 
if(!isset($name))
{
    echo "Please Provide your name.";
    exit;
}
if(!isset($email))
{
    echo "Please provide an email address.";
    exit;
}
if(!isset($subject))
{
    echo "Please provide a subject.";
    exit;
}
if(!isset($message))
{
    echo "Please write a message.";
    exit;
}
$mailcontent="Customer name: ".$name."\n".
             "Customer email: ".$email."\n".
             "Customer message: ".$message."\n";
$fromaddress="From: ".$email."\n";
mail("[EMAIL="dylan.kozicki@gmail.com",$subject,$mailcontent,$fromaddress"]dylan.kozicki@gmail.com",$subject,$mailcontent,$fromaddress[/EMAIL]);

?>
<html>
    <head>
        <title>Opus Insurance - Message Sent</title>
    </head>
    <body>
        <h1>Message Sent</h1>
    </body>
</html>
 
Status
Not open for further replies.
Top