From: Dylan Penhale <dylan@(email surpressed)>
Subject: rushsendmail question
   Date: Tue, 30 Aug 2005 00:55:12 -0700
Msg# 1016
View Complete Thread (3 articles) | All Threads
Last Next
We have modified our submit script to file check frames and 
Que/neverhost if the frame is incomplete, but I want to be able to 
send a mail when ever that process occurs. 

I'm looking at the rushsendmail binary but I can't see how to issue 
the whole command as one line without using an external file. This 
will run on windows so I can't use the nix mail command.

I want to issue a command something like:

system("rushsendmail -f rush@(email surpressed) alert@(email surpressed) . 
-s "Alert: $ENV{RUSH_HOSTNAME} was neverhosted" . 
);

However I don't think rushsendmail has an -s option and also a flag 
for the message body. 

So I tried to pipe an echo'ed statement into the rushsendmail but I 
can't seem to get multiple lines in DOS echo command, so I can't feed 
To: 
Subject:
etc...

e.g.

      system("echo To: sysadmin@(email surpressed)\n" .
                 "Subject: Error on on $ENV{RUSH_HOSTNAME}\n" .
                 "$ENV{RUSH_PADFRAME} " .
                 "on $ENV{RUSH_HOSTNAME}: Didn't manage output.\n " .
                 "Added as neverhost and re-queued \n" .
                 "| c:\rush\etc\bin\rushsendmail -f " .
		 "sysadmin@(email surpressed).");


Or perhaps there is a delimit char or charage return flag?

I do have a way out in that I can rsh the command to a mail server on 
the network but it's a bit messy.

Any ideas?

-- 
Dylan Penhale
Systems Administrator
Fuel International
65 King Street
Newtown
Sydney
NSW 2042

Phone:  xxxxxxxxxx
Mobile: xxxxxxxxxx
Web:    www.fuel-depot.com

Last Next