[Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

Carlos E. R. robin.listas at telefonica.net
Sun Jan 14 12:49:49 CET 2024


On 2024-01-14 12:20, Bo Berglund via lazarus wrote:
> On Sat, 13 Jan 2024 17:03:55 +0100 (CET), Michael Van Canneyt via lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
> 
>> You could also use Synapse. I always prefer synapse over Indy.
>>
> 
> So I have now verified that I cannot use Indy10 for email sending anymore :( ...
> 
> I have used Indy since a very long time like 20 years or so when dealing with
> Internet accesses. So I am not used to other ways.
> 
> Now I have looked around for valid examples which will work like my send
> function but using Synapse but the result is confusing.

I think you have alternatives.

You can seek and find a windows light mail server program that runs in 
the same machine as your program. You do not need a full fledged one. 
It's tasks is solely to receive email from your program and send it to 
your ISP. I can not suggest one, you would have to ask on some windows 
support group. The advantage is not having to modify your code.

Or you can try to find another type of windows light mail server, of the 
type that you pass it a file to send as email, similarly to what is done 
on Linux with sendmail. You have to modify your code, but your program 
will not need to talk smtp. Fire and forget.

In Linux there are also mail client applications, those that are used by 
a user to type an email and send it, that can also be called on scripts. 
Maybe they exist on Windows too.

Thunderbird can do this:

thunderbird.exe -compose "to='email at domain.com',subject='Some 
Subject',preselectid='id1',body='Message Body',attachment='File.txt'"

(in batch, add "start /b" or it will stop waiting for TB to return)

https://stackoverflow.com/questions/6253701/thunderbird-compose-email-in-a-batch-script-continue-to-next-command

http://forums.mozillazine.org/viewtopic.php?t=3033072

-- 
Cheers / Saludos,

		Carlos E. R.
		(from 15.4 x86_64 at Telcontar)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240114/3a583896/attachment.sig>


More information about the lazarus mailing list