HTML i email med Indy?
Davser,Når jeg sender en mail med Indy-SMTP, så bruger jeg dette som body:
Msg.Body.Add('This is simple test mail.');
Msg.Body.Add('56756765rghgrhtr.');
Og det kommer skam fint frem, men når jeg prøver med HTML:
Msg.Body.Add('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
Msg.Body.Add('<html xmlns="http://www.w3.org/1999/xhtml">');
Msg.Body.Add('<head>');
Msg.Body.Add('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />');
Msg.Body.Add('<title>Untitled Document</title>');
Msg.Body.Add('</head>');
Msg.Body.Add('<body>');
Msg.Body.Add('<p>Dette er<br /><br /><strong>er</strong><br /><br />en test.</p>');
Msg.Body.Add('</body>');
Msg.Body.Add('</html>');
Så slår den ikke "automatisk over" på HTML, men skriver det præcist som det står heh.
Så hvordan laver man noget html?