On Sat, 4 Jun 2005, Anish Kumar K wrote: > yeah this is fine. But In the Program I have given like > > my $sendmailPath=PATH WHERE IT IS INSTALLED. > > In the perl program itself I need to finfd it out > > As I don;t want to do it everytime I change it to a new server...
Ah. Then clearly you need to be doing something more robust than this. You *could* pull some clever code in your Perl to figure out where the sendmail program lives, but it's hardly worth the effort. It can be all over the place on different systems, and a lot of systems now won't have it at all, or it won't be configured to work, etc. You're *much* better off using one of the mail modules on CPAN, almost all of which either already have tricks to figure out where `sendmail` lives, or are written in such a way that they don't need it at all. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>