JSFiddle - React, Tailwind, and code Playground

by Amin Kodaganur

HTML

-------------this is send_mail.php file------
<?php
   $name = $_POST['name'];
   $no = $_POST['no'];
   $msg = $_POST['msg'];
   $from = "[email protected]"; // Email id of sender
   $headers = "From:" . $from;
   $subject = "Subject Goes here";
   
   $mail_text = "New mail From ".$_POST['name']." \n\n Contact no:".$no."\n\n Message :".$msg;
   
   
   $to = "[email protected]" // Email ID Of which u want to send mail
   
   var status = mail($to, $subject, $mail_text, $headers)
   
   if (status == 1){
        echo "mail sent";
   }else{
       echo "mail not sent";
   }

?>