Examples to connect to sendmail or telnet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Examples to connect to sendmail or telnet

L505
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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal