From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 24 Jan 2016 10:11:39 -0600 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Sending HTML e-mail Date: Sun, 24 Jan 2016 11:12:11 -0500 Organization: IISS Elusive Unicorn Message-ID: References: <7f2111a7-a789-42c9-829b-08c2661410bd@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.79.216.254 X-Trace: sv3-bFOFQQlVHBOug++i8spTA5mqXyHQ+dk42+IALyWiVkBk9+rjyamnErrjbvfS2skMHbJc+qPe+gHIiaS!yKLM1rEgtypnhy5qtVAi/SAu0/ipl+UCKJYf9/Q21IZfC502cxowBC+U45CO8vbpvYfT6uG+230A!sa0LtZ9RfoEH/PJKXHqXeRlYX8zA X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2917 Xref: news.eternal-september.org comp.lang.ada:29218 Date: 2016-01-24T11:12:11-05:00 List-Id: On Sat, 23 Jan 2016 20:25:04 -0800 (PST), John Smith declaimed the following: >Hi, > >One thing that I'd like to do in Ada is to send an HTML file and have that >display as the actual e-mail itself (for example, in Outlook.) Basically, not as >an attachment to the e-mail, but inside the message of it. > >Here are the steps that I took and the results that I got: >- The first thing I did was have a look at this example: > http://rosettacode.org/wiki/Send_email#Ada > >Where it says message, I entered HTML and my e-mail never got to my Outlook >Inbox. The plain text worked though. > >- Then, I tried turning HTML code into (which is in a plain HTML file) an >attachment and then sending that out. Well, this e-mail did get to where it was >supposed to get to, but it had an attachment that was an HTML file. I tried >something similar in a different programming language and it worked as I've >previously described. > >So, I have this question. How can I create a plain table in HTML and then send it out? 1) You will likely have to have the entire body of the message as HTML -- not just something contained within it. (Unless you actually go to the extent of using multipart/mixed or some such, in which you embed multiple forms of the message: text/plain, text/html, etc. and let the reading client pick the one it can best handle) 2) You will have to have a means of controlling the SMTP headers to be able to define that the message body follows MIME format and contains HTML Suggest studying https://tools.ietf.org/html/rfc2045 https://tools.ietf.org/html/rfc2046 and https://www.ietf.org/rfc/rfc2854.txt -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/