[Overview][Types][Procedures and functions] | Reference for unit 'smtp' (#powtils_main) |
Work is being done to make more functions in this unit that are even easier to use, such as a simple SendEmail() function that sends email similar to the SendMail unit.
Note that on Windows operating systems, this SMTP unit may not work unless you use our included sockets_patched unit. FPC sockets units contained Windows socket related INPUT/OUTPUT bugs in the write/writeln text driver. On unix, this unit is fine.
The buggy Windows code in sockets.pp has been found, and reported to the FPC team. Compilers 2.1.X or later (or hopefully earlier) may eventually have this bug repaired.
It is wise to become familiar with SMTP using a command line shell before using the SMTP units, so you have a basic idea of how SMTP works, and so that you know how someone could inject malicious input into your SMTP functions through your web program.