Hi Debbie && List !

At the moment the From: is automatically set by 'mail'. 
It assumes, that the uid,  which owns the  webserver process (nobody), is the 
sender of that mail.

Here's another way to do it:

my $mail = '/usr/sbin/sendmail';
my $recipient = 'somebody\@somewhere.on.the.net';

open (MAIL, "| $mail $recipient") || &abort ("Can't open $mail: $!\n");
print MAIL "Reply-to: unreplyable\n";
print MAIL 'From: The Company Corp.';
print MAIL "To: $recipient\n";
print MAIL 'sometext foo bar bla';
close (MAIL);

On Wednesday 06 March 2002 05:32 pm, you wrote:
> My problem is this. Everytime the email is delivered (linux red-hat 7.1),
> the sender is 'nobody'. I know this is probably some sort of server default
> and I would like to change this to something else...like 'The Company
> Corp.'

HTH,
Jan
-- 
cat /dev/world | perl -e "while (<>) {(/(^.*? \?) 42 \!/) && (print $1)}"
errors->(c)
_ 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to