comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Sending HTML e-mail
Date: Sun, 24 Jan 2016 11:12:11 -0500
Date: 2016-01-24T11:12:11-05:00	[thread overview]
Message-ID: <a7t9abpg2p6ghs65f6agsase7cltp9ad8e@4ax.com> (raw)
In-Reply-To: 7f2111a7-a789-42c9-829b-08c2661410bd@googlegroups.com

On Sat, 23 Jan 2016 20:25:04 -0800 (PST), John Smith
<yoursurrogategod@gmail.com> 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/


  reply	other threads:[~2016-01-24 16:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-24  4:25 Sending HTML e-mail John Smith
2016-01-24 16:12 ` Dennis Lee Bieber [this message]
2016-01-26  1:09   ` Randy Brukardt
2016-01-26 23:09     ` John Smith
2016-01-26 23:18       ` John Smith
2016-01-26 23:18       ` John Smith
2016-01-27  2:29         ` Dennis Lee Bieber
2016-01-28  0:14       ` Randy Brukardt
2016-01-28  3:11         ` John Smith
2016-01-28 21:42           ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox