or
//
var Email = $_POST('email');
var Number = $_POST('number');
$to_email = 'Your E-mail';
$subject = 'The Subject of the message';
$message = 'Name'.$name. "email" .$email. "number:" .$number.".";
$headers = 'From: noreply @ company . com'; //optional
mail($to_email,$subject,$message,$headers);
?>
Example 2: send html email laravel
// $data => array of information passed to view
Mail::send('email_view', $data, function ($m) use ($user) {
$m->from("[email protected]", config('app.name', 'APP Name'));
$m->to($user->email, $user->email)->subject('Email Subject!');
});