In a Delphi 10.4.2 VCL Application in Windows 10, I followed the TSendMail
example here:
http://docwiki.embarcadero.com/CodeExamples/Sydney/en/TSendMail_(Delphi)
... to create a InternetSendMail1
action in the ActionList.
But when I execute this code:
var OK := InternetSendMail1.Execute;
CodeSite.Send('OK', OK);
OK returns True
.
But nothing happens: No email is opened.
My email client Thunderbird is a regular registered MAPI mail client working perfectly for many years: For example, when I click a mailto
link then a new email is created in Thunderbird etc.
So what must I do to make the InternetSendMail1
action work?
EDIT: I finally realized that what I want to do is not actually sending a mail but creating a mail with an attachment, so the user can edit it with a recipient, body, etc., and then send it after he has finished editing it. So I changed the question from "How to send a mail with TSendMail?" to "How to create a mail with TSendMail?".