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@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='em...@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)

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to