TScTextAttachment.create has changed on Version 10
Posted: Wed 22 Sep 2021 08:52
Hi,
I've used following code for binding HTML-textfiles to the e-mail textbody:
By updating to Version 10.0.1 I can't compile my code any longer, because of type mismatch:
Best regards
Rolf
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