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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.80.137 with SMTP id e131mr587503ywb.37.1453950710652; Wed, 27 Jan 2016 19:11:50 -0800 (PST) X-Received: by 10.182.166.97 with SMTP id zf1mr7797obb.18.1453950710612; Wed, 27 Jan 2016 19:11:50 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!94no7745470qgt.1!news-out.google.com!kr2ni12201igb.0!nntp.google.com!h5no10430046igh.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 27 Jan 2016 19:11:50 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:ba86:87ff:fed6:5907; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:8350:ba86:87ff:fed6:5907 References: <7f2111a7-a789-42c9-829b-08c2661410bd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Sending HTML e-mail From: John Smith Injection-Date: Thu, 28 Jan 2016 03:11:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 3806 X-Received-Body-CRC: 791188382 Xref: news.eternal-september.org comp.lang.ada:29269 Date: 2016-01-27T19:11:50-08:00 List-Id: > It's not that easy to do. The easiest way is to use a library constructed > for that purpose. I use one that originated with Tom Moran built on top of > Claw Sockets or NC Sockets. (And I've more recently redesigned it to work > better in my spam filter and it's related tools.) > > But of course to use Claw.Sockets you have to have the paid version of Claw. > The original version of NC Sockets only works on Windows; I once started a > more generic version but never quite finished it (maybe this year). > > And I note that the NC_SMTP that I have doesn't have the ability to set the > content type (and even if it did, sending just an HTML message is evil -- > you have to send a text equivalent along with it. Indeed, many spam filters > substantially increase the spam score for messages where the text and HTML > have different contents -- it's important to get that right). I've never > needed that; the primary use I've had for this library is to send bounce > messages for undeliverable mail -- and that is always a plain text function > that does not copy much of the original message (if you include the original > message, spammers will bounce spam off of your mail server in order to use > it to originate the spam). > > One can trivially send a text message in NC_SMTP using the simple send > function: > > NC_SMTP.Open (Session => My_Session, > IP => Target_Ip); > NC_SMTP.Send_Simple_Message (Session => My_Session, > Sender => > "r...@rrsoftware.com", > Recipient => > ad.....@ada-auth.org, > Subject => > "Ada is great", > The_Body => > ...); > NC_SMTP.Close (Session => My_Session); > > Here, the body is a linked list of Unbounded_Strings, each string > representing a line (I won't show the construction of those - it should be > obvious). And Target_IP can be figured out by using the Lookup_Host_Info > function (this is the interface to DNS in Claw.Sockets and NC.Sockets). > > There's probably some public library out there that does this stuff, but I > don't know anything about it. > > Randy. So, basically, you're saying that this is impossible with the default AWS libraries?