.


Divya

mail () Function in PHP


In PHP The mail() function is used to send emails.

Example

<?php
$to = "somebody@example.com";//Recipient's email address
$subject = "My subject";//Subject of the mail
$txt = "Hello world!";//your message
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
mail($to,$subject,$txt,$headers);
?>


.