Sign in Join

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

Mailing lists / fpc-pascal / 2005-10

Examples to connect to sendmail or telnet

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

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

Reply by email