0
       <?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

2
Contributors
1
Reply
13
Views
2 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.