I tried using the form mailer tutorial to submit information from a flash site by email. However, it didn’t seem to work.
I then used a completely different tutorial from a different site and that didn’t work either. So I cut out the flash completely and used an html form and got this back from the PHP script -
Warning: mail(): SMTP server response: 554 <@******.com>: Recipient address rejected: Relay access denied in e:\domains\c***********\user\htdocs\email.php on line 16
response=passed;
heres the php -
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$name=trim($name);
$email=trim($email);
$subject=StripSlashes($subject);
$message=StripSlashes($message);
//modify the next line with your own email address
$toaddress='****@******.com';
mail($toaddress,$subject,$message,"From: $name <$email>");
//clear the variables
$name='';
$email='';
$subject='';
$message='';
echo "response=passed";
I’ve tried loads of different email addresses even the one provided by the webhost. Are there settings that need to be changed with the web host to allow this type of thing? I know at the moment there is an html email enquiry form that is up and running on the webspace but without PHP - I also know that PHP does work tho on the server - whats wrong?