Newsletter

Hallo, ich schreibe zur Zeit ein Programm in C# für einen Newsletter für Outlook und habe aktuell das Problem das Outlook einfach meine Breitenangaben nicht nimmt. Ich hoffe, ich bin hier im Forum richtig, da der Großteil schon HTML ist. Habe folgenden HTML Code der in die Email eingefügt wird (path, latestnewstitle usw. sind einfach nur text/richtextboxen, in denen letztendlich irgendwelcher Text steht). Habe es jetzt schon mit width in prozent, mit und ohne pixel… veruscht. Geklappt hat leider bisher nichts und ich bin nicht wirklich fit in HTML.

oMailItem.HTMLBody = „<table style="border: 1px solid black; width=723;">“ +
„“ +
„<td colspan=2 style="border: 1px solid black;">Logo“ +
„“ +
„“ +
„<td style="border: 1px solid black;"> “ +
„<td style="border: 1px solid black;">“ + ausgabe + „
„“ +
„“ +
„<td valign = top style="background-color:#3C474D; border: 1px solid black;">

“ + latestnewstitle + „
“ + latestnews + „

“ +
„<td style="background-color:#2D383E; border: 1px solid black; width=300;">

In dieser Ausgabe:



“ + textausgabe + „

“ +
„“ +
„“ +
„<td style="background-color:#657278; border: 1px solid black;">

“ + mainartikeltitle + „
“ + mainartikel + „

“ +
„<td style="border: 1px solid black; width=300;"rowspan=2>

“ + artikeltitle + „
“ + artikeleins + „

“ +
„“ +
„“ +
„<td style="border: 1px solid black; float=top;">

“ + artikeltitle2 + „
“ + artikelzwei + „

“ +
„“ +
„“ +
„<td style="border: 1px solid black;">Interessante Links
Link
Link“ +
„<td style="border: 1px solid black;"> “ +
„“ +
„“ +
„<td colspan=2 style="background-color:#2D383E; border: 1px solid black; width=717;">“ + copyright + „“ +
„“ +
„“ +
„<td colspan=2 style="border: 1px solid black;"> “ +
„“ +
„“;

Bin für jede Hilfe dankbar

Hallo,

ich habe mir jetzt nur die erste zeile angeschaut :O)

oMailItem.HTMLBody = "<table style=\"border: 1px solid black; width[B]=[/B]723;\">" +

oMailItem.HTMLBody = "<table style=\"border: 1px solid black; width[B]:[/B]723;\">" +Cheffchen
edite: ach so css ist bei e-mail immer misst besser html also style ganz weg lassen wen es geht wie bei width, mach doch gleich width=723 ohne style.