Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#4

AW: HTML-Mail kommen bei Outlook-Empfängern nicht korrekt an

  Alt 8. Okt 2014, 22:45
OT

So hübsch die bunten Farben auch sind, warum benutzt du keine Code-Tags?
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=unicode" />
  <title>Helpdesk Information</title>
Delphi-Quellcode:
 email1.Subject := Titel+Trim(Form1.ed_Title.Text);
 email1.ContentType := 'multipart/mixed';
 email1.Body.Assign(html1);

 txtpart := TIdText.Create(email1.MessageParts);
 txtpart.ContentType := 'text/plain';
 txtpart.Body.Text := '';

 htmpart := TIdText.Create(email1.MessageParts, html1);
 htmpart.ContentType := 'text/html';

 Header:=TIdAttachmentFile.Create(email1.MessageParts,Home+Bild);
 Header.ContentType := 'image/jpeg';
 Header.ContentDisposition := 'inline';
 Header.ExtraHeaders.Values['content-id'] := Bild;
 Header.DisplayName := Bild;
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat