[fpc-pascal] Examples to connect to sendmail or telnet
L505
fpc505 at z505.com
Tue Oct 11 20:57:52 CEST 2005
You can easily automate or run other telnet commands with freepascal. There are some good
general examples in the freepascal documentation for sockets - the example below addresses
sendmail specifically.
If anyone that is interested in automating or testing to see if sendmail or their mail
server is working correctly on their linux system, here are some simple example programs:
http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=FreePascal-Sockets-Connect-To-SendMail
It's really simple, you just have to make sure you know your domain name on your linux box
for the HELO or EHLO, (which could be retrieved automatically by other means too).
Might work on MS Windows too, if you have a mail server installed.
--
L505
More information about the fpc-pascal
mailing list