: Hi,
: 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
: server?
:
: Thanks in advance.
: Ram
:
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:
ftp://clio.rice.edu/pub/cwsmail.c
ftp://clio.rice.edu/pub/cwsmail.exe
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
message.txt
It also works on unix and OpenVMS (with the SMTP service enabled in
an OpenVMS TCP/IP stack).