Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-05

sending Emails from within freepascal

9 messages · 8 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rudolf Harney

Hi,

We need a program, running under Linux and windows, that is able to send Emails. With Linux I can call sendmail. Is there an easy way for sending Emails from within freepascal under Windows, also?

Thank You,

Rudolf

Reply by email

Marco van de Voort
to Rudolf Harney
We need a program, running under Linux and windows, that is able to send Emails. With Linux I can call sendmail. Is there an easy way for sending Emails from within freepascal under Windows, also?

I've used ICS/win32 from www.overbyte.be. It compiled directly using FPC/win32 1.9.8, and theer is a consmtp demo that sends a mail. All in one exe, no external files needed.

Reply by email

Vinzent Hoefler
to Rudolf Harney: We need a program, running under Linux and windows, that is able to send Emails. With…
Rudolf Harney wrote
We need a program, running under Linux and windows, that is able to send Emails. With Linux I can call sendmail. Is there an easy way for sending Emails from within freepascal under Windows, also?

You can try Synapse (<URI:http://www.ararat.cz/synapse/>). I can't tell about the SMTP module, but if it does as well as the HTTP module here does on both Linux and Windows, it certainly rocks. ;-)

Vinzent.

Reply by email

Artur Kornilowicz
to Vinzent Hoefler

Hi,

I work on PPC with Darwin.
I am trying to build binaries for Linux.
Calling

fpc -Tlinux a.pas

I get:

Free Pascal Compiler version 2.0.0 [2005/05/13] for powerpc Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for PowerPC
Compiling a.pas
Fatal: Can't find unit System
Error: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specifiy a source file to be compiled)

How can I fix it?

Regards
Artur

Reply by email

Jonas Maebe
to Artur Kornilowicz
Artur Kornilowicz wrote 5 lines
I work on PPC with Darwin. I am trying to build binaries for Linux. Calling fpc -Tlinux a.pas

The Mac OS X version does not include Linux units by default, so you have to compile and install the compiled Linux RTL. For this, and also to generate programs afterwards, you need a Darwin-to-Linux cross-assembler and cross-linker (the Darwin assembler and linker cannot generate Linux/ELF object files). You will probably have to compile these yourself, at least a quick google search did not turn up anything.

Jonas

Reply by email

Adriaan van Os
to Jonas Maebe
Jonas Maebe wrote 15 lines
Artur Kornilowicz wrote: > I work on PPC with Darwin. > I am trying to build binaries for Linux. > Calling > > fpc -Tlinux a.pas The Mac OS X version does not include Linux units by default, so you have to compile and install the compiled Linux RTL. For this, and also to generate programs afterwards, you need a Darwin-to-Linux cross-assembler and cross-linker (the Darwin assembler and linker cannot generate Linux/ELF object files). You will probably have to compile these yourself, at least a quick google search did not turn up anything.

There is, check out
<http://www.opendarwin.org/pipermail/odcctools/2004-November/>.

Regards,

Adriaan van Os

Reply by email

Jonas Maebe
to Adriaan van Os
Adriaan van Os wrote 10 lines
> The Mac OS X version does not include Linux units by default, so you > have to compile and install the compiled Linux RTL. For this, and > also to generate programs afterwards, you need a Darwin-to-Linux > cross-assembler and cross-linker (the Darwin assembler and linker > cannot generate Linux/ELF object files). You will probably have to > compile these yourself, at least a quick google search did not turn > up anything. There is, check out <http://www.opendarwin.org/pipermail/odcctools/2004-November/>.

That's the other way round, this person wants to compile Linux binaries under Darwin/Mac OS X.

Jonas

Reply by email

Lukas Gebauer
to Vinzent Hoefler: You can try Synapse (<URI:http://www.ararat.cz/synapse/>). I can't tell about the SMTP…
You can try Synapse (<URI:http://www.ararat.cz/synapse/>). I can't tell about the SMTP module, but if it does as well as the HTTP module here does on both Linux and Windows, it certainly rocks. ;-)

Sure!

And simple mails can be sended by one function call. ;-) However when you wish to use MIME encoded mails (include attachments, charset encoding, etc.), then you can do it by Synapse too!

Lukas Gebauer. E-mail: WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library

Reply by email