Autor Beitrag
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 16.03.05 14:51 
Ich stelle mich da im Moment ein bisschen dämlich an. Ich bin zwar in der Lage, mir die eMails von einem Konto zu holen, aber was nehme ich für eine Komponente, um HTML-eMails anzuzeigen.

Irgendwie habe ich da gerade ein Brett vorm Kopf. Helft mir doch mal, das zu entfernen. :wink:

Ich bin übrigens bisher ohne Indy ausgekommen. Wäre schön, wenn es so bliebe. Ist aber nicht Bedingung.
Manfred
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Do 17.03.05 01:01 
Hi!
Was spricht denn gegen die Komponente TWebBrowser?

_________________
Computer können schneller rechnen als wir, deshalb machen sie auch mehr Fehler
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Do 17.03.05 07:31 
Hallo,
habe dasselbe Problem www.delphi-forum.de/...38470&highlight=
Frage meine Mails jedoch mit Indy ab.

Ich würde zwar lieber nach Plain Text convertieren, aber anzeigen wöre auch ok.
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 17.03.05 08:11 
user profile iconManfred hat folgendes geschrieben:
Hi!
Was spricht denn gegen die Komponente TWebBrowser?

Habe ich versucht. Aber irgendwie stelle ich mich zu blöd dabei an. :oops:
Ich habe keine Möglichkeit gesehen, den empfangenen Text dorthin zu übergeben. Oder geht das nur, indem ich das vorher als Datei speichern muss? Das wollte ich allerdings vermeiden.
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Do 17.03.05 12:41 
Hey,

So habe Ich es jetzt gelöst:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
procedure WB_LoadHTML(WebBrowser: TWebBrowser; HTMLCode: string);
var
  sl: TStringList;
  ms: TMemoryStream;
begin
  WebBrowser.Navigate('about:blank');
  while WebBrowser.ReadyState < READYSTATE_INTERACTIVE do
   Application.ProcessMessages;

  if Assigned(WebBrowser.Document) then
  begin
    sl := TStringList.Create;
    try
      ms := TMemoryStream.Create;
      try
        sl.Text := HTMLCode;
        sl.SaveToStream(ms);
        ms.Seek(0, 0);
        (WebBrowser.Document as IPersistStreamInit).Load(TStreamAdapter.Create(ms));
      finally
        ms.Free;
      end;
    finally
      sl.Free;
    end;
  end;
end;



Quelle: SwissDelphiCenter

Link habe Ich gerade nicht da zum Artikel, funktioniert bei mir ganz gut,

aber Wenn Du eine Routine für HTML- PlainText findest würde Ich mich sehr freuen

Gruß Martin

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 17.03.05 12:45 
Danke für den Tipp. Wahrscheinlich komme ich erst nächste Woche zum Testen.
Bisher habe ich das immer in ein Memo geschrieben. Für Plain/Text völlig ausreichend. Aber ist natürlich ein bissschen blöd, dafür 2 Komponenten zu verwenden.
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Fr 18.03.05 12:30 
Hallo,

ich würde den TWebbrowser nicht verwenden. Ist, wenn ich mich täusche eine Kapselung vom MS InetExplorer.

Ich nehme die komponente THTMLLite von www.pbear.com

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 20.03.05 18:40 
Wie wärs mal mit dem TEmbeddedWB??? gibt's unter [url]www.euromind.com\iedelphi[/url]. Der hat unter anderem diese Funktion integriert...

_________________
Programmers never die, they just GOSUB without RETURN
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Mo 21.03.05 18:14 
Das wäre es gewesen,

Aber:
euromind.com

This domain name expired on 03/14/2005 and is pending renewal or deletion.


:((

Mal gucken ob Ich ihn bei Torry oder so finde, jedenfalls danke für den Tipp.