J
John M
Guest
I have a flash website and I'm using PHP to send a contact form to my email address. I'm new to PHP and just used a tutorial to construct my PHP form but it's not sending as it should.
Here's the PHP info for my webserver:
http://www.alpha-duplication.com/website/phpinfo.php
Here is an article giving help... but I'm pretty new to PHP and don't really understand.
https://support.easyspace.com/faq.php?do=article&articleid=1811
And here is my PHP code (I've changed the sendto email address, previously it was my correct address):
<?php
$sendto = '[email protected]';
$subject = 'Email from TestWebsite.com Contact Form';
$name = $_POST['fromname'];
$from = $_POST['fromemail'];
$message = $_POST['frommessage'];
$message = stripslashes($message);
$content = "Name: " . $name . "\n";
$content .= "Email: " . $from . "\n\n";
$content .= $message;
if(mail($sendto,$subject,$content))
{
echo 'response=passed';
}
else
{
echo 'response=failed';
}
?>
Can anyone help?
Many thanks!
The sendTo email address is a POP3 account at the same domain as my webpage, and using the same web host.
The send button returns the sucessful message everytime I test, but I don't receive anything in my email. I've checked my spam folder as well.
Here's the PHP info for my webserver:
http://www.alpha-duplication.com/website/phpinfo.php
Here is an article giving help... but I'm pretty new to PHP and don't really understand.
https://support.easyspace.com/faq.php?do=article&articleid=1811
And here is my PHP code (I've changed the sendto email address, previously it was my correct address):
<?php
$sendto = '[email protected]';
$subject = 'Email from TestWebsite.com Contact Form';
$name = $_POST['fromname'];
$from = $_POST['fromemail'];
$message = $_POST['frommessage'];
$message = stripslashes($message);
$content = "Name: " . $name . "\n";
$content .= "Email: " . $from . "\n\n";
$content .= $message;
if(mail($sendto,$subject,$content))
{
echo 'response=passed';
}
else
{
echo 'response=failed';
}
?>
Can anyone help?
Many thanks!
The sendTo email address is a POP3 account at the same domain as my webpage, and using the same web host.
The send button returns the sucessful message everytime I test, but I don't receive anything in my email. I've checked my spam folder as well.