Article View: borland.public.cppbuilder.internet.socket
Article #4926TNMSMTP componet FinalHeader doesn't accept modifications
From: Pedro Perez
Date: Wed, 17 Nov 2004 14:41
Date: Wed, 17 Nov 2004 14:41
38 lines
2305 bytes
2305 bytes
Hi all,
I have tried to modify the header of an e-mail generated with TNMSMTP
component with C++ Builder 5 Enterprise. The reason is because I need to ask
a confirmation of reading. The problem is that the header doesn't accept
this modification. I had followed the instructions provided with an example
from the help file and I had modified the SendStart event as follow:
void __fastcall TFTransmitir::SMTP1SendStart(TObject *Sender)
{
SMTP1->FinalHeader->Values["X-Priority"] = "1";
SMTP1->FinalHeader->Values["X-Confirm-Reading-To"] =
"my_adress@my_adress.com";
SMTP1->FinalHeader->Values["Errors-To"] =
"my_adress@my_adress.com";
}
The componet didn't work, the I had tried this:
void __fastcall TFTransmitir::SMTP1SendStart(TObject *Sender)
{
SMTP1->FinalHeader->Add("X-Priority: 1");
SMTP1->FinalHeader->Add("X-Confirm-Reading-To:
"my_adress@my_adress.com");
SMTP1->FinalHeader->Add("Errors-To: "my_adress@my_adress.com");
}
but it still didn't work. The header of the e-mail is still the same:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="====================54535aavfgq===="
Please, can any body help me?, what is the problem?
Thanks in advance.
Pedro Perez
-------------------------------------------------------------------------------------------------
Technical Details
Message-ID:
<419b632b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d887a20ae1b5bb8,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Pedro Perez" <pperez@ts.es> From: "Pedro Perez" <pperez@ts.es> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TNMSMTP componet FinalHeader doesn't accept modifications Date: Wed, 17 Nov 2004 15:41:47 +0100 Lines: 40 Organization: Telefonioca Soluciones X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 192.101.1.126 Message-ID: <419b632b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100702507 192.101.1.126 (17 Nov 2004 06:41:47 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail