Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Controls Guy on August 05, 2020, 01:29:56 PM
-
I'm trying to email some tabular data from Do-More, so I need the emails to appear in a monospaced font for the columns to line up. In a PC email client, you can specify the font, but in Do-More there's no such mechanism, so I'm trying to figure out how the email format does it under the hood and hopefully it's something I can embed in the email body text so it can be done from Do-More. I tried the following, based on The Google, but doesn't seem to do what I want, when viewing received emails in Thunderbird.
Anyone know how to do this?
MIME-Version: 1.0
Content-Type: text/html
Content-Disposition: inline
<html>
<body>
<pre style="font: monospace">
My table data here
</pre>
</body>
</html>
-
I saw this hack:
Forward the message back to yourself, but change the font to a fixed-width font.
-
I saw this hack:
Forward the message back to yourself, but change the font to a fixed-width font.
You mean the recipient would need to do that? That's not ideal for me, because the customer is the recipient, not me. I want the Do-More to do it before it gets to him.
-
Could you make it an attachment as an HTML file? Sadly, a lot of anti-virus programs might strip it.
-
Could you make it an attachment as an HTML file? Sadly, a lot of anti-virus programs might strip it.
I was able to email an HTML file to myself. Outlook warned me about looking at content in its preview, but I was able to view it after I said it was OK.
-
That might work. Still would require an extra step on the part of the customer (opening the attachment), but better than making him re-email it.
I'll give that some thought.
Thanks!
-
I thought you could use HTML tags directly without an attachment. I get ads all the time with no attachment, but have a doctype as HTML. How do they do that?
-
I think your issue is not having the !DOCTYPE set.
https://www.emailonacid.com/blog/article/email-development/which-code-should-i-include-in-every-email/
-
Thanks, PE. I'll give that a try.