Search This Blog

Wednesday, 21 January 2015

Send email using php.



To send email using PHP, you use the mail() function.



Example:



$subject="Test";

$message="Test msg...";

$to="emailid@gmail.com";

$from="example@gmail.com";

$headers .= 'From:'.$from. "\r\n";

mail($to,$subject,$message,$headers");

No comments:

Post a Comment