Send e-mail over SMTP port 465 with authorization (SSL)
Dear all.
I am using FastReport for VCL ver. 2023.1.0 and Delphi 10.4 Pro
I am trying to use a frxMailExport component to send a PDF version of report by email.
As today standard - must be over port 465 (SSL) with authorization.
IMAP or MSOutlook are not option's for me, it must be SMTP ...
How I can do that?
I try to use a next code but it doesn't work; I get error 10053 - Software caused connection abort. I am not trying to send to a GMail account, I use a customer ISP smtp server so related data in a code below is only for INFO...
frxReport1.PrepareReport ;
frxMailExport1.Address:='dison08@gmail.com';
frxMailExport1.ExportFilter:=frxPDFExport1; // or other
frxMailExport1.FilterDesc:='PDF per E-Mail versenden';
frxMailExport1.FromMail:='dison08@gmail.com';
frxMailExport1.FromCompany:='SS';
frxMailExport1.FromName:='el fuerte';
frxMailExport1.Subject:= 'mi subject';
frxMailExport1.SmtpHost:='smtp.gmail.com';
frxMailExport1.SmtpPort:=465;
frxMailExport1.Login:='dison08@gmail.com';
frxMailExport1.Password:='*******';
frxMailExport1.ShowDialog:=true;
frxReport1.Export(frxMailExport1) ;
THX in advance
Tomislav