This contact script in PHP is now sending emails
This contact script in PHP is now sending emails.

Please let me know if I have made any errors in the code.

--------
contact_mail.php

    <?php
    if(isset($_POST['enter']) && $_POST['enter']==1)
    {
    	$_SESSION['email']=$_POST['email'];
    	$to="name@domains.com";
    	$subject='Contact Us Details';
    	$message="<style>
    
    					.textstyle{
    
    					font-family:Tahoma;
    
    					font-size:11px;
    
    					color:#156E00;
    
    					text-align:left;
    
    					margin-left:10px;
    
    					text-decoration:none;
    					}
    
    					</style>";
    
    		$message.="<table width=400 border=0>
    					
    					<tr><td class=textstyle>First Name:  </td> <td class=textstyle>".$_POST['fname']."</td></tr>
    					<tr><td class=textstyle>Last Name:  </td> <td class=textstyle>".$_POST['lname']."</td></tr>
    					<tr><td class=textstyle>E-mail:  </td> <td class=textstyle>".$_POST['email']."</td></tr>
    					<tr><td class=textstyle>Phone Number:  </td> <td class=textstyle>".$_POST['tel']."</td></tr>
    					<tr><td class=textstyle>Comments:  </td> <td class=textstyle>".$_POST['que']."</td></tr>
    					</table>";
    		$mail_from = "From:".$_POST['email'];
    		$mail_from .="\r\nContent-type: text/html";
    		@mail($to,$subject,$message,$mail_from);
    	header("location: ../thankyou.html"); 	
    	exit();
    }
    
    ?>


This contact script in PHP is now sending emails
===

This contact script in PHP is now sending emails.

Please let me know if I have made any errors in the code.

--------
contact_mail.php

    <?php
    if(isset($_POST['enter']) && $_POST['enter']==1)
    {
    	$_SESSION['email']=$_POST['email'];
    	$to="name@domains.com";
    	$subject='Contact Us Details';
    	$message="<style>
    
    					.textstyle{
    
    					font-family:Tahoma;
    
    					font-size:11px;
    
    					color:#156E00;
    
    					text-align:left;
    
    					margin-left:10px;
    
    					text-decoration:none;
    					}
    
    					</style>";
    
    		$message.="<table width=400 border=0>
    					
    					<tr><td class=textstyle>First Name:  </td> <td class=textstyle>".$_POST['fname']."</td></tr>
    					<tr><td class=textstyle>Last Name:  </td> <td class=textstyle>".$_POST['lname']."</td></tr>
    					<tr><td class=textstyle>E-mail:  </td> <td class=textstyle>".$_POST['email']."</td></tr>
    					<tr><td class=textstyle>Phone Number:  </td> <td class=textstyle>".$_POST['tel']."</td></tr>
    					<tr><td class=textstyle>Comments:  </td> <td class=textstyle>".$_POST['que']."</td></tr>
    					</table>";
    		$mail_from = "From:".$_POST['email'];
    		$mail_from .="\r\nContent-type: text/html";
    		@mail($to,$subject,$message,$mail_from);
    	header("location: ../thankyou.html"); 	
    	exit();
    }
    
    ?>

