Fehler beim erstellen von Attachments.
Hallo,
ich erzeuge eine TIdMessage. Daran möchte ich ein Attachment hängen. dies mache ich wie folgt:
Delphi-Quellcode:
Im DocPath steht auch der passende Pfad.
Attachment := TIdAttachmentFile.Create(aidMessage.MessageParts, aDocObj.DocPath);
Habe alles durchgebugged. Aber nun zum Fehler. In meiner Mail steht das Attachment wie folgt drin (nur ein kleiner auszug): Zitat:
Hat jemand eine ahnung woran das liegen könnte? gruß LordPsychoter Crosspost: http://forum.delphi-treff.de/showthr...142#post190142 |
Re: Fehler beim erstellen von Attachments.
Niemand eine ahnung ? :(
|
Re: Fehler beim erstellen von Attachments.
Problem gelöst:
Es ist darauf zu achten das foglende Attribute so gesetzt sind:
Delphi-Quellcode:
TidMessage.ContentType = 'multipart/mixed'
TidText.ContentType = 'Text/html' gruß Andreas |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:48 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