[fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?
Bo Berglund
bo.berglund at gmail.com
Tue May 11 23:35:55 CEST 2021
On Mon, 10 May 2021 09:24:37 -0000 (UTC), Virgo Pärna via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
>On Mon, 10 May 2021 10:08:53 +0200 (CEST), Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>
>> That's it. From your story, it seems you just need to set
>> FSMTP.TargetPort:=465;
>> FSMTP.FullSSL:=True;
>>
>
> Also ssl_openssl must be in uses somewhere in program to include
>openssl support for Synapse.
Of course, but as I said the basic mail sending is working I just have a hard
time understanding how to add file attachments.
It would not have worked unless the proper uses are added to the pas file and
also the laz_synapse package set as required for the project.
The only attachment example I have (from Michael) brings in mime, which I don't
understand much of and the synapse docs are very hard reading too.
So right now I try to read up on how to actually handle the mime object here...
And I had an additional question:
Does Synapse throw exceptions when errors happen? It does not look like that in
the code I have examined so far but I have only looked in two units..
That is what Indy does so one must have try-except in order not to get a total
app failure.
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list