I have tried several diffrent codes to have php send the form and have the mail alighned on right, and nothnig works. When I open the mail, it is always on left
<?php
$to = "skatz25@hotmail.com";
$subject = "טופס הפניית מתנדב/ גוף פונה";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$rname = $_POST['rname'];
$date = $_POST['date'];
$name = $_POST['name'];
$age = $_POST['age'];
$refrence = $_POST['refrence'];
$msg = '
<html>
<body dir="rtl">
<table dir="rtl" style="direction:rtl">
<tr>
<td style="text-align: right;">מקבל הפנייה:</td>
<td>' . $rname . '</td>
<tr>
</table>
</body>
<html>
';
mail($to, $subject, $msg, $headers);
?>
When I open the mail in hotmail the text is rtl but starts from the left side of the page instead of the right
Any help is appreciated
First, you must draw a table that has width and heigth set to 100% and in that table, create another table, aligned to the right, like:
<table width='100%' height='100%'><tr><td align='right'> <table align='right'><tr><td>content</td></tr></table> </td></tr></table>