Article View: borland.public.cppbuilder.internet.socket
Article #4327Re: INDY TIdSMTP example
From: Roberto Zais
Date: Thu, 10 Feb 2005 10:59
Date: Thu, 10 Feb 2005 10:59
50 lines
2490 bytes
2490 bytes
Many Thanks !
I ' ve found that this solution :
TIdText(MyMsg->MessageParts, Form12->RichEdit1->Lines); // 1
TIdText(MyMsg->MessageParts, Form12->RichEdit1->Lines); // 2
works . One of the examples I found reported it . But I must repeat the
instruction twice
or an index 0 error (?) occurs. (Why?)
moreover, the attch works ( only a line is requested )
TIdAttachment(MyMsg->MessageParts, "Pictures\\sample.jpg"); // basta 1
sola istruzione !
Concerning the date , I' ve canceled the row:
> > MyMsg->Date = Now();
and leaved MyMsg->UseNowForDate = true;
but only the date is only displayed inthe received mail
e.g ( cut&Paste)
gioved๏ฟฝ 10 febbraio 2005 0.00
help says that UseNowForDate is valid for time, too (?)
Grazie !
Roberto
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio
news:420a5462$1@newsgroups.borland.com...
>
> "Roberto Zais" <rzaiss@tiscali.it> wrote in message
> news:4209ee05$1@newsgroups.borland.com...
>
> > MyMsg->Body->Text = Form12->RichEdit1->Text; // ****
> > TEXT of the message !! */
> > MyMsg->IsEncoded = false;
> > //TIdText(MyMsg->MessageParts, Add("***Esercizio
spedizione***"));
>
> If you are using the TIdMessage::Body property, then do not use TIdText.
If
> you use TIdText, don't use the TIdMessage::Body property.
>
> > MyMsg->Date = Now();
>
> You already set the UseNowForDate property to true. Setting the Date to
> Now() manaully is redundant.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<420b3e1c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4209ee05$1@newsgroups.borland.com> <420a5462$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c17ebca7aaa2a060 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII From: "Roberto Zais" <rzaiss@tiscali.it> Newsgroups: borland.public.cppbuilder.internet.socket References: <4209ee05$1@newsgroups.borland.com> <420a5462$1@newsgroups.borland.com> Subject: Re: INDY TIdSMTP example Date: Thu, 10 Feb 2005 11:59:09 +0100 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 82.48.83.145 Message-ID: <420b3e1c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108033052 82.48.83.145 (10 Feb 2005 02:57:32 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail