Article View: borland.public.cppbuilder.internet.socket
Article #2744Re: Bare LFs in SMTP
From: Mr. Wuf
Date: Sun, 29 Jan 2006 14:08
Date: Sun, 29 Jan 2006 14:08
42 lines
2683 bytes
2683 bytes
> Since your code has a setting for using "base64", you should not be
getting the error when that is enabled.
Yes, this is possible in my mail client. But I want the "quoted-printable"
feature too (because not all clients support base64)! I will test the
connection with base64. Thank you.
> > NText->Body = Memo2->Lines;
>
> How many characters are on each line of your Memo text?
More than 64 characters... I know what you mean, but I don't know how to fix
this.
> You have 2 "text/plain" parts in your message.
I know. That is my intention. Otherwise the code does not work! (exception)
> > int TextParts = 0;
> > for (int MP=0; MP < SMTPMessage->MessageParts->Count; MP++)
> > {
> > if(dynamic_cast<TIdText*>(SMTPMessage->MessageParts->Items[MP]));
> > TextParts++;
> > }
>
> TIdMessage has a CountParts() method that does that for you, assigning the
> TIdMessage's TextPartCount property. Besides, your code has a semi-colon
at
> the end of the if() statement, so the variable will be incremented for all
> parts regardless of their actual class type. You should have gotten a
"code
> has no effect" warning from the compiler.
No. It works normally.
> > if (IdSMTP1->AuthenticationType == atLogin)
> > if (!IdSMTP1->Authenticate())
>
> You do not need to call that manually. Send() automatically calls
> Authenticate().
Ok, thank you for your modified code.
Technical Details
Message-ID:
<43dccb8e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c40bbd54da4c4431 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mr. Wuf" <wuf@email.si> Newsgroups: borland.public.cppbuilder.internet.socket 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> Subject: Re: Bare LFs in SMTP Date: Sun, 29 Jan 2006 15:08:46 +0100 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 84.59.108.239 Message-ID: <43dccb8e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138543502 84.59.108.239 (29 Jan 2006 06:05:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail