You are not logged in.
Pages: 1
I implemented the email service on my project in Delphi for Windows and it works:
function TEmailService.Send : boolean;
var
vContent: RawUtf8;
begin
vContent := MergeTemplate;
ValidaParametros;
with FEmailSettings do
Result := SendEmail(
Host,
User,
FEmailTo,
MimeHeaderEncode(StringToUtf8(FTemplate.S['Assunto'])),
Utf8ToWinAnsi(vContent),
Headers,
User,
Pass,
Port,
TextCharSet,
TLS);
end;
But now I'm using a version of same project in Lazarus for linux and facing an issue, I guess it's because of missing lib:
ESendEmail {Message:"Command failed for teste@microprocess.com.br at mail.microprocess.com.br:465 [Undefined Error]"} [TAppRestHttpSrv8083v1THttpSrvRe] at 49f1e5
What do I need to do or wich files do I need to implement SendEmail in my Lazarus for Linux version?
Offline
The port 465 is not blocked. I execute on Delphi and it works, but when I execute on Lazarus don't.
Offline
Port 465 for SMTP with SSL/TLS encryption? Do you build same app bitness (32/64). Check your dll bitness if you use openssl.
Offline
Pages: 1