I Want to Send Email Multiple Records to a special user. but not working email. I am using email formate than also HTML Error. and PHP, please help me..

PHP script

<?php

       if (isset($_POST["submit"])) 
        {
           $to=$_POST[email];
           $subject="One enquiry has been come!";

            if (count($_POST["ids"]) > 0 ) 
             {
               $all = implode(",", $_POST["ids"]);
               $sql =mysqli_query($con,"select * FROM tblusers WHERE id in ($all)");

               while ($rows=mysqli_fetch_array($sql)) 

                    { ?>
                        <div style="padding:10px;background:#ccc; margin-bottom: 1%;">
                            <p>fullname :<?php echo $rows['FullName'];?> 
                               Education :<?php echo $rows['Education'];?>
                               postingDate :<?php echo $rows['postingDate'];?>
                            </p>

                        </div>

                      <?php } 

        mail (to,$subject,????);

        }

    }  
?>

1 Answers

0
Amitabh Kr On
**I Want to send Email on special user multiple records. but the loop is not converted in to string any idea so, please help me...**

  <?php

       if (isset($_POST["submit"])) 
        {
           $to=$_POST[email];
           $subject="One enquiry has been come!";

            if (count($_POST["ids"]) > 0 ) 
             {
               $all = implode(",", $_POST["ids"]);
               $sql =mysqli_query($con,"select * FROM tblusers WHERE id in ($all)");

               while ($rows=mysqli_fetch_array($sql)) 

                    { ?>
                        <div style="padding:10px;background:#ccc; margin-bottom: 1%;">
                            <p>fullname :<?php echo $rows['FullName'];?> 
                               Education :<?php echo $rows['Education'];?>
                               postingDate :<?php echo $rows['postingDate'];?>
                            </p>

                        </div>

                      <?php } 

        mail (to,$subject,????);

        }

    }  
?>