Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy POP3 erkennen ob Absender eine Bestätigung will (https://www.delphipraxis.net/48913-indy-pop3-erkennen-ob-absender-eine-bestaetigung-will.html)

Klaus Kirchhoff 2. Jul 2005 12:47


Indy POP3 erkennen ob Absender eine Bestätigung will
 
Hallo ich nutze Indy 10 Delhp 7 und habe das Problem,
dass mir nicht ganz klar ist wo drann ich erkennen ob
ein Absender eine EMail-Bestätigung angefordert hat.
Hatt jemand ein Beispiel, gibt es im TIdMessage ein
Flag wo hinterlegt ist ?

Ich dank Euch für die Mühe

HeikoAdams 2. Jul 2005 12:55

Re: Indy POP3 erkennen ob Absender eine Bestätigung will
 
Wenn jemand eine Empfangsbestätigung wünscht, ist im Header der Mail das Feld "Return-Receipt-To:" nebst entsprechender Mail-Adresse vorhanden.

Gruß

Heiko

Klaus Kirchhoff 3. Jul 2005 10:28

Re: Indy POP3 erkennen ob Absender eine Bestätigung will
 
Vielleicht liegt es an der Indy-Version, ich nutze Version 10.x und da gibt es
im Header nicht das Feld "Return-Receipt-To:" sonder wenn eine Empfangsbestätigung
angefordert wurde ist im Header Disposition-Notification-To"[/b] nebst entsprechender
EMail-Adresse vorhanden. Aber Trotzdem vielen Dank ...

Duffy 3. Jul 2005 10:58

Re: Indy POP3 erkennen ob Absender eine Bestätigung will
 
Hallo Klaus,
wenn Du die Nachricht/ den Nachrichtenheader empfängst,
Delphi-Quellcode:
function RetrieveHeader(const MsgNum: Integer, AMsg: TIdMessage): Boolean;
dann wird sie in eine IdMessage abgelegt. Und hier gibt es die Eigenschaft "ReceiptRecipient"

Zitat:

Zitat von Indy 10 Hilfe
Return receipt email address.

property ReceiptRecipient: TIdEmailAddressItem;

Description

ReceiptRecipient is a TIdEMailAddressItem property used to identify the address where a return receipt for the message should be delivered. The values in ReceiptRecipient are used in the RFC 2822 message header "Disposition-Notification-To:". A blank value in ReceiptRecipient indicates that a return receipt is not desired.

Use the following properties to get or set the values for the TIdEMailAddressItem:

ReceiptRecipient.Text
ReceiptRecipient.Name
ReceiptRecipient.Address
Including an email address in ReceiptRecipient does not guarantee that a receipt notice will be generated when the message is received; the recipient can always cancel the request.

bye
Claus


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:02 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz