Recent

Author Topic: Send email with attachment on Linux using SSL and synapse  (Read 772 times)

BosseB

  • Sr. Member
  • ****
  • Posts: 358
Send email with attachment on Linux using SSL and synapse
« on: May 10, 2021, 12:21:44 am »
I have struggled getting the part of a service program running, which handles emailing of reports. The program is running on Linux (RaspberryPi) and it must use SSL encryption.

I have used Indy10 for this in the past but now it no longer works due to the OpenSSL current version (1.1.x) is not supported by Indy10 (only 1.0.x works, but it is not available for installation in the operating system.
So I have been advised to use Synapse instead.
Installed Synapse 40.1 via OLPM in Lazarus 2.0.12.

Now trying to find valid code examples for mailing with Synapse and SSL, but failing. What I have found do not handle attachments or are very old.

I have tried googling but what turns up is very little, Windows specific or often very old.

Grateful for any suggestions with code examples.
--
Bo Berglund
Sweden

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1474
  • Former Delphi 1-7, 10.2 user
Re: Send email with attachment on Linux using SSL and synapse
« Reply #1 on: May 10, 2021, 03:46:16 am »
You may find this thread and its references useful, if you haven't already spotted it of course.
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65182 FPC 3.3.1 r49223 macOS 11.4 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

 

TinyPortal © 2005-2018