i will send mail using php mail function but it can display some error..
Warning: mail(): Failed to connect to mail server at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
mail.php
<?PHP
$sender = 'sender123@gmail.com';
$recipient = 'resever123@gmail.com';
$subject = "php mail test";
$message = "php test message";
$headers = 'From:' . $sender;
if (mail($recipient, $subject, $message, $headers))
{
echo "Message accepted";
}
else
{
echo "Error: Message not accepted";
}
?>