I created an email template in HTML which i call in my python code. I prepare the mail in python using MIMEMultipart() and sending it afterwards via SMTP server to Microsoft Outlook.
For the tabulator space i tried following:
<span style="margin-left:400px;">myText</span>
When i view the HTML in the browser i get the 400px space from the left side. But when i am trying to send the HTML via email it is ignoring the spacing.
This is my code:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html"; charset="UTF-8">
<style>
</style>
</head>
<body lang=DE link=blue vlink=purple style='tab-interval:35.4pt;word-wrap:break-word'>
<div class=WordSection1>
<p class=MsoNormal>
<span lang=EN-US style='mso-ansi-language:EN-US'>
myText
<span style="margin-left:400px;">myText</span>
myText
</span>
</p>
</div>
</body>
</html>