Created
October 24, 2022 09:36
-
-
Save MySohoWiki/fe231bbc1fc2d2970b3454e0241bb048 to your computer and use it in GitHub Desktop.
SendEmail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure SendEmail; | |
var | |
fs: tfileStream; | |
s: string; | |
begin | |
if not IsNull(newvalue) then begin | |
fs:= tfilestream.create('c:\htmlEmail.html', fmOpenRead); | |
fs.read(s, fs.size); | |
fs.free; | |
prg.SendEmail('xxx@gmail.com', '', '', 'subject', s, '', true, true); | |
end; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment