: We use the mail command in the korn-shell scripts on our servers to
: send the email notifications to ourselves.
: Recently network administrator changed the configuration on the router
: so that we don't get emails anymore. We were told to use the one of the
: smtp server to send the mail.
: Can anybody tell me how to send the email thru smtp server from aix
: Thanks in advance.
You could use a command-line mailer like cwsmail, whose arguments are:
1. smtp-host (smtp server)
4. file (optional)
The source and a Win32 executable are available:
Here's how to compile it on Windows, along with a sample execution,
with the line wrapped for readability:
c:\> cl -DWIN32 cwsmail.c wsock32.lib
It also works on unix and OpenVMS (with the SMTP service enabled in
an OpenVMS TCP/IP stack).