Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-11 Thread Bo Berglund via fpc-pascal
On Mon, 10 May 2021 09:24:37 - (UTC), Virgo Pärna via fpc-pascal
 wrote:

>On Mon, 10 May 2021 10:08:53 +0200 (CEST), Michael Van Canneyt via fpc-pascal 
> 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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-11 Thread Virgo Pärna via fpc-pascal
On Mon, 10 May 2021 10:08:53 +0200 (CEST), Michael Van Canneyt via fpc-pascal 
 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.

-- 
Virgo Pärna 
virgo.pa...@mail.ee

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal