From: ' . $from . "\n". "To: $to\nSubject:$subject\nMessage:\n$msg\n\n"; } else { print "Can't send message. " . $Mail::Sendmail::error . "
From: ' . $from . "\n". "To: $to\nSubject:$subject\nMessage:\n$msg\n\n"; } else { print "Still can't send."; } } } } else { print "Don't know recipient: $to\n"; } print 'Return.'; } sub encrypt { my($msg, $key) = @_; my($tmpfile) = '/tmp/sendsecure' . getppid(); my($pubring) = '/root/.pgp/pubring.pkr'; my($cmd) = ("|/usr/local/bin/pgpe -r $key -o $tmpfile -atf --pubring=$pubring 2>/dev/null"); # print $cmd . "