I've used following code for binding HTML-textfiles to the e-mail textbody:
Code: Select all
var msg: TScMailMessage;
begin
...
with TScTextAttachment.Create(msg.Attachments, nil) do
begin
Body.LoadFromFile(fileName);
ContentType := 'text/html';
end;
...
end;
What can I do?[dcc32 error] .. E2010 incompatible types: 'TScAlternateViewCollection' and 'TScAttachmentCollection'
Best regards
Rolf