Question : Using sendmail command line

I am writing a program to send e-mail to customers.
Information is puuld from proprietary database running on HP-Unix
My program will run the script to run :

sendmail [email protected]
To: [email protected]
From: [email protected]
Subject: Reply

info
info
.


It works fine.  However, I want to use my other smtp server (Redhat 6.2, sendmail 8.9.3) to send e-mails instead of going through HP-Unix's smtp.

How would I run the command? Or do I have to change the sendmail configuration file from HP?

Answer : Using sendmail command line

use
/usr/lib/sendmail -t <To: [email protected]
From: [email protected]
Subject: Reply

info
info

EOM

Or you can script this to include
your ifo as file
and have [email protected]
as parameter
ref as $1


cat letterfile | mailx -s "Reply" [email protected]

is another method

Random Solutions  
 
programming4us programming4us