News:

  • April 16, 2026, 05:05:14 PM

Login with username, password and session length

Author Topic: Including formatting in Do-More emails  (Read 7356 times)

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Including formatting in Do-More emails
« 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?


Code: [Select]
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 retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: Including formatting in Do-More emails
« Reply #1 on: August 05, 2020, 02:19:37 PM »
I saw this hack:

Forward the message back to yourself, but change the font to a fixed-width font.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Including formatting in Do-More emails
« Reply #2 on: August 05, 2020, 02:42:37 PM »
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.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: Including formatting in Do-More emails
« Reply #3 on: August 05, 2020, 03:55:52 PM »
Could you make it an attachment as an HTML file?  Sadly, a lot of anti-virus programs might strip it.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3803
    • Host Engineering
Re: Including formatting in Do-More emails
« Reply #4 on: August 05, 2020, 04:01:46 PM »
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.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Including formatting in Do-More emails
« Reply #5 on: August 05, 2020, 04:04:25 PM »
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 retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: Including formatting in Do-More emails
« Reply #6 on: August 05, 2020, 05:17:39 PM »
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?

ADC Product Engineer

  • Hero Member
  • *****
  • Posts: 270
Re: Including formatting in Do-More emails
« Reply #7 on: August 06, 2020, 07:56:06 AM »

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Including formatting in Do-More emails
« Reply #8 on: August 06, 2020, 01:31:56 PM »
Thanks, PE.   I'll give that a try.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.