Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending mail from unix server

Status
Not open for further replies.

Larshg

Programmer
Mar 1, 2001
187
DK
Hi

I need a perl script to send me a mail, I working on a HP-unix system

Tha mail content should be the contens of a file on the server - and the subject should be a text plus $ARGV[2]

If it where .ksh I'd probaly do something like this.
cat /file.txt | mailx -s "text $3" mail@adr.com

Thanks

Lars
 
you could use the system command to send your mail

something like

system("uuencode $homedir$mail $send_name | mailx -s 'Subject' $emailAddress" );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top