sendmail subject to append dynamically.

Hi,
I have to use sendmail from command line, and we need to append a static string in subject to a new value from file.Is there any way to do it.

Thanks
Shrikrishna

I can't see why you would use sendmail if it's from the command line - if you use mailx, then you could just do the following although I would be careful on the amount of data in 'somefile' being added to the subject:

mailx -s"STATIC INFO `cat /somedir/somefile`" mymail@mydomain.com < /otherdir/mymailfile

If you are writing a script, then there may be a way to use sendmail and change part of the subject to be static and part not since you could set up a variable to create both parts of the whole subject.