stevestephenemery74
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 0
Complete novice struggling to create site with form mail on it. I have followed all the advice I can find online but am getting nowhere and cannot get a php form to send an email. I have tried putting what is said to be a 'foolproof' mail checking code on the page scripted as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php<br />
mail('*****@gmail.com','Test mail','The mail function is working!');<br />
echo 'Mail sent!';<br />
?>
</body>
</html>
When I load the page through my browser it reports:
<?php
mail('*****@gmail.com','Test mail','The mail function is working!');
echo 'Mail sent!';
?>
But I receive no mail. I have tried directing the mail to my x10 address, but this doesn't work either. I am sure I am missing something obvious (do I have to ativate php mail somewhere?), hoping somebody can help
Many thanks
Steve
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php<br />
mail('*****@gmail.com','Test mail','The mail function is working!');<br />
echo 'Mail sent!';<br />
?>
</body>
</html>
When I load the page through my browser it reports:
<?php
mail('*****@gmail.com','Test mail','The mail function is working!');
echo 'Mail sent!';
?>
But I receive no mail. I have tried directing the mail to my x10 address, but this doesn't work either. I am sure I am missing something obvious (do I have to ativate php mail somewhere?), hoping somebody can help
Many thanks
Steve