Jump to content

mail function not working


mindapolis

Recommended Posts

Hi I'm trying to get the mail function working.  I tested it with my own email but I haven't gotten an email.  could I please get some help? 

<?php
$fname = $_POST['fname'];
$email = $_POST['email'];
$subject = "hi";
mail($fname, $email, $subject);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
header {
	background-color: #735435;
}
</style>
</head>
<body>   
<form action="" method="post" name="contact">
name <input name="fname" type="text" size="7">
Email <input name="email" type="text" size="20">
<input name="SUBMIT " type="submit" value="SUBMIT">
</form>
</body>
</html>
Link to comment
https://forums.phpfreaks.com/topic/284532-mail-function-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.