What am i doing wrong here? It says it's sent but i receive nothing, please help.
<html>
<head>
<title>Katya Embroidery Email Sender</title>
</head>
<body>
<?php
//check that required data has been provided
if(!$_POST['email'])
{
die("You did not provide an email address, please click the back button and enter one. Thank you.");
}
if(!$_POST['name'])
{
die("You did not provide a name, please click the back button and enter one. Thank you.");
}
//get data from form.
$name = $_POST['name'];
$company = $_POST['company'];
$email = $_POST['email'];
$telephone = $_POST['telephone'];
$country = $_POST['country'];
$comments = $_POST['comments'];
$attachment = $_POST['attachment'];
//generate the email body
$body = "Name: $name\nCompany / Organisation: $company\nEmail: $email\nTelephone: $telephone\nCountry: $country\n\n$comments";
require_once 'swift/swift_required.php';
//Create the message
$message = Swift_Message::newInstance()
//Give the message a subject
->setSubject('KATYA EMBROIDERY - WEB SITE ENQUIRY FORM')
//Set the From address with an associative array
->setFrom(array($email => $name))
//Set the To addresses with an associative array
->setTo(array('email@email.com' => 'Katya Embroidery'))
//Give it a body
->setBody($body)
//Optionally add any attachments
->attach(Swift_Attachment::fromPath($attachment))
;
print 'Your message has been sent to Katya Embroidery, we try to reply to emails within 24 hours.<br /><a href="contact.html">Click here to return to the website.</a>';
?>
</body>
</html>