Email code not working php

i am trying to make a contact form but php code is not sending email to gmail

i am using this code

<?php

	$emailfrom = "[email protected]";
	$emailsubj = "from website";
	$emailbody = "username \n";
	$to = "[email protected]";
	$headers = "from someone";
	mail($to,$emailsubj,$emailbody,$headers);
?>

Please check the knowledge base and existing forum posts next time first. This issue has been discussed many, many, many times already.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.