<?php
        $message = "test mail";
        $name = "jiby";
        $email = "test@gmail.com";
        $tel = "9744462131";
        $mob = "9744462131";
        $comment = "hai";
        $content = "<h3>Contact Form</h3><br/><table width=100% border=3>
        <tr>
        <td width=40% ><b>Name :</b></td>
        <td width=60% >$name</td>
        </tr>
        <tr>
        <td><b>Email Address : </b></td>
        <td>$email</td>
        </tr>
        <tr>
        <td><b>Telephone : </b></td>
        <td>$tel</td>
        </tr>
        <tr>
        <td><b>Mobile Number :</b></td>
        <td>$mob</td>
        </tr>
        <tr>
        <td><b>Comment :</b></td>
        <td>$comment</td>
        </tr>

</table>";
mail("gladjiby@gmail.com", $content, $message);
        echo 'Test mail send';
        ?>

//The above showed code is for email sending
............................................................................................

<h3>Contact Form</h3><br/><table  border=3>

        <tr>
        <td width=40% ><b>Name :</b></td>
        <td width=60% >jiby</td>
        </tr>

        <tr>
        <td><b>Email Address : </b></td>
        <td>test@gmail.com</td>
        </tr>

        <tr>
        <td><b>Telephone : </b></td>
        <td>9744462131</td>
        </tr>

        <tr>
        <td><b>Mobile Number :</b></td>
        <td>9744462131</td>
        </tr>

        <tr>
        <td><b>Comment :</b></td>
        <td>hai</td>
        </tr>

</table>

Above showed is the result i got in email like above (not displaying table)

how to fix above error and get proper table like result in email

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.