Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy + css in html (https://www.delphipraxis.net/134544-indy-css-html.html)

youuu 24. Mai 2009 15:28


Indy + css in html
 
Hi,

mittlerweile habe ich es hin bekommen die E-Mail per HTML zu versenden, allerdings wird dabei "css" code total weggelassen, kann mir wer sagen wie man auch "css" inplementieren kann?

mkinzler 24. Mai 2009 15:29

Re: Indy + css in html
 
Sind die css-Deklarationen Teil des Mail?

youuu 24. Mai 2009 15:33

Re: Indy + css in html
 
Zitat:

Zitat von mkinzler
Sind die css-Deklarationen Teil des Mail?

ja
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
.Stil1 {
   color: #0000FF;
   font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center"><span class="Stil1">Test E-mail</span>
</div>
</body>
</html>
Als kleines Beispiel

mkinzler 24. Mai 2009 15:34

Re: Indy + css in html
 
Welches Email-Programm?

youuu 24. Mai 2009 15:36

Re: Indy + css in html
 
Zitat:

Zitat von mkinzler
Welches Email-Programm?

Wie meinst du das?

Ich versende es per Indy Komponente, zu verschiedenen Menschen, eine art Info Mail.

mkinzler 24. Mai 2009 15:38

Re: Indy + css in html
 
Das die css-Deklarationen ignoriert werden, scheint eher ein Problem des darstellenden Email-Programmes ( des Empfängers) zu sein

youuu 24. Mai 2009 15:40

Re: Indy + css in html
 
Wenn ich es allerdings ohne css, dafür mit <font ...> mache funktioniert die Darstellung.
Ist denke ich besser, da es kompatibler ist oder?

mkinzler 24. Mai 2009 15:43

Re: Indy + css in html
 
Wenn die Emailclients verwendet werde, die kein "modernes" XHTML können, ja.


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:41 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