Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi POP3-Mail an SMTP-Server (https://www.delphipraxis.net/35084-pop3-mail-smtp-server.html)

BrinkschulteManfred 2. Dez 2004 11:33


POP3-Mail an SMTP-Server
 
Hallo zusammen,

ich möchte Mails von einen POP3-Server abholen um sie nach einer Bearbeitung an einen SMTP-Server weiterzugeben. Dazu nutze ich bisher die Komponenten TIdPOP3, TIdSMTP und TIDMessage.
Alles funktioniert bisher auch prächtig, bis auf das Mailformat, teilweise wird die Mail richtig dargestellt (plain Text / HTML) teilweise werden werden die Inhalte (bis auf die Anlagen) entfernt und teilweise wird auch ein Passus eingefügt wie
SQL-Code:
This is a multi-part message in MIME format.
oder
SQL-Code:
--=extPart_2altrfkindysadvnqw3nerasdf
Content-Type: text/plain; charset=tf-8"
Content-Transfer-Encoding: base64
Zum Übertragen der einzelnen Mails in die TIdMessage nutze ich den IdPOP.Retrieve. Wird dabei nicht automatisch das vorliegende Format erkannt und richtig eingestellt? Wie kann ich automatisch das richtige Format wählen?

Gruß
Manfred :coder2:


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:58 Uhr.

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