![]() |
html email mit attachments verschicken
Hallo,
folgendes Problem: Normalerweise habe ich mit Hilfe von Indy html mails verschickt (contenttype=text/html). Das funktionierte auch einwandfrei. Sobald ich aber Attachments hinzufuege (tidattachment.create(idmessage.messageparts, file);) wird die message selber im text/plain versandt. :shock: Wie kann ich attachments in html mails verschicken, bzw. warum bockt indy mit mir hier rum? danke |
Re: html email mit attachments verschicken
Suche hier mal nach
![]() ...:cat:... |
Re: html email mit attachments verschicken
Danke, Problem gelöst! Mit extra plain geht's wunderbar......
Delphi-Quellcode:
IdMessage.Body.Text := 'Diese E-Mail wurde im HTML-Format versendet';
with TIdText.Create(IdMessage.MessageParts) do begin ContentType := 'text'; Body.Text := 'Diese E-Mail wurde im HTML-Format versendet'; end; TIdAttachment.Create(IdMessage.MessageParts, 'test.txt'); with TIdText.Create(IdMessage.MessageParts) do begin ContentType := 'text/html'; Body.Add('Diese E-Mail wurde im HTML-Format versendet blah'); end; |
Re: html email mit attachments verschicken
Zitat:
...:cat:... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:44 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