[Lazarus] How to send Email from Lazarus program under Linux x86-64

reinierolislagers at gmail.com reinierolislagers at gmail.com
Sun Mar 24 15:34:38 CET 2013


On 24-3-2013 15:19, Donald Ziesig wrote:
> Hi All!
> 
> I am trying to implement a program that will send emails to (a subset
> of) an application-specific roster.
> 
> I found numerous references to synapse so I downloaded the source which
> includes a .lpk library (it is several years old).  

Yep, seems about 3 years old:
cd C:\Development\extras\synapse
svn log laz_synapse.lpk | more
r129 | geby | 2010-07-02 12:46:39 +0200 (vr, 02 jul 2010) | 3 lines

- improved MACOS compatibility
- workaround for some broken virtual serial ports
- Added Lazarus package

> Has anyone had success in using this library under Linux (x86-64)?

Yes. See e.g. fpctwit, which happily runs under Linux. Also, the fpcup
Lazarus/fpc updater can install synapse for you, also the synapse trunk
version.

AFAIK no need to change any synapse files.

Please see the wiki page on synapse:
http://wiki.lazarus.freepascal.org/synapse

> I also examined Indy (which I used successfully years ago on
> Delphi/Borland c++ Builder) but it, too, is obsolete (latest updates
> seem to be circa 2006) and comes with many, many warnings and caveats.
Please see the indy wiki page:
... ah well, you'll be able to find it. It's cross referenced in the
synapse page as well IIRC.

> Is there any other smtp and pop3 code available for Lazarus or will I
> have to generate my own from scratch?

There certainly is. IIRC, LazSolutions has code for sending email.
Synapse comes with an email example, or has it in the examples directory
on their site.
Code for sending email using synapse is floating around on e.g. the
synapse mailing list...

Good luck,
Reinier




More information about the Lazarus mailing list