🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2697

Re: Bare LFs in SMTP

#2697
From: Mark Jacobs
Date: Fri, 10 Feb 2006 09:58
27 lines
2385 bytes
Remy Lebeau (TeamB) wrote:
> "Mark Jacobs" <markj@critical.co.uk> wrote in message
> news:43eb24a7@newsgroups.borland.com...
> 
>>Remy, even the simplified code is overly complicated.
> 
> What do you think is "overly complicated" about it exactly?

Compare with Hans' component outline post above.

   TMyMail *MyMail = new TMyMail;
   MyMail->PlainText = ...; //TStrings or filename
   MyMail->HtmlText  = ...; //TStrings or filename
   MyMail->AddInlineAttachment ( inlinefilename1 )
   MyMail->AddInlineAttachment ( inlinefilename2 )
   MyMail->AddInlineAttachment ( inlinefilename3 )
   MyMail->AddAttachment ( filename1 )
   MyMail->AddAttachment ( filename2 )
   MyMail->AddAttachment ( filename3 )
   MyMail->AddAttachment ( filename4 )
   MyMail->SaveToFile ( ......eml );
   delete MyMail;

It should be as easy as this if it's to be considered a useful aid to development.
-- 
Mark Jacobs
http://www.dkcomputing.co.uk
Technical Details
Message-ID: <43ec62df@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43d80b2b$1@newsgroups.borland.com> <43d81c0d$1@newsgroups.borland.com> <43d8ce05@newsgroups.borland.com> <43d912e0$1@newsgroups.borland.com> <43d96959@newsgroups.borland.com> <43d97297@newsgroups.borland.com> <43da1e0d@newsgroups.borland.com> <43da6e72$1@newsgroups.borland.com> <43dccb8e@newsgroups.borland.com> <43ddbb09$1@newsgroups.borland.com> <43e24225$1@newsgroups.borland.com> <43e3a59d$1@newsgroups.borland.com> <43e3ce90$1@newsgroups.borland.com> <43e3ecf8$1@newsgroups.borland.com> <43eb24a7@newsgroups.borland.com> <43eb78d3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c40bbd54da4c4431
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Feb 2006 09:58:42 +0000
From: Mark Jacobs <markj@critical.co.uk>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Bare LFs in SMTP
References: <43d80b2b$1@newsgroups.borland.com> <43d81c0d$1@newsgroups.borland.com> <43d8ce05@newsgroups.borland.com> <43d912e0$1@newsgroups.borland.com> <43d96959@newsgroups.borland.com> <43d97297@newsgroups.borland.com> <43da1e0d@newsgroups.borland.com> <43da6e72$1@newsgroups.borland.com> <43dccb8e@newsgroups.borland.com> <43ddbb09$1@newsgroups.borland.com> <43e24225$1@newsgroups.borland.com> <43e3a59d$1@newsgroups.borland.com> <43e3ce90$1@newsgroups.borland.com> <43e3ecf8$1@newsgroups.borland.com> <43eb24a7@newsgroups.borland.com> <43eb78d3$1@newsgroups.borland.com>
In-Reply-To: <43eb78d3$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.144.157.8
Message-ID: <43ec62df@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139565279 81.144.157.8 (10 Feb 2006 01:54:39 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail