Code: Select all
$to = '".$email."';
$subject = "Homies For Life Password!";
$body = "Your password is : '".$rand."'";
if (mail($to, $subject, $body))
{
echo("<p>Your password has been sent to the email address:'".$email."' </p>");
}
else
{
die("<p>The email containing your password failed to send, please contact an Administator</p>");
}do I need to change any settings or install anything to send email via php on a localhost?