Sending mail using PHP mail function

Hello Guys! Can anyone tell me how to send emails in 000webhost, i’m a free user and I want to send emails using stmp servers like gmail, sendrid, etc.

Thanks in advance, please help me.

Check the tutorials section.

I Couldn’t see the one which I was looking for!

Sorry.

[code]?php
//if “email” variable is filled out, send email
if (isset($_REQUEST[‘email’])) {

//Email information
$admin_email = "someone@example.com";
$email = $_REQUEST[‘email’];
$subject = $_REQUEST[‘subject’];
$comment = $_REQUEST[‘comment’];

//send email
mail($admin_email, “$subject”, $comment, “From:” . $email);

//Email response
echo “Thank you for contacting us!”;
}

//if “email” variable is not filled out, display the form
else {
?>

Email:
Subject:
Message:

<?php } ?>[/code]