Scroll to top

How to send email via PHP?

<?php
$to = “somebody@example.com”;
$subject = “My subject”;
$txt = “Hello world!”;
$headers = “From: webmaster@example.com” . “rn” .
“CC: somebodyelse@example.com”;

mail($to,$subject,$txt,$headers);
?>

Leave a Reply

Your email address will not be published. Required fields are marked *