clarissa1996
Technical User
To send a message with perl I use the following program:
$mailprog = "/usr/lib/sendmail -t";
open (MAIL, "|$mailprog"
print MAIL "To: $to\n";
print MAIL "From: $from\n";
printf MAIL ("Subject: $subject\n\n"
print MAIL "$message\n";
close MAIL;
The problem is that if the recipient ($to) do not exist, the error is sent to the user that starts the program and not to the sender ($from).
Is there a solution ?
Thanks for any help. M. Rezzonico
$mailprog = "/usr/lib/sendmail -t";
open (MAIL, "|$mailprog"
print MAIL "To: $to\n";
print MAIL "From: $from\n";
printf MAIL ("Subject: $subject\n\n"
print MAIL "$message\n";
close MAIL;
The problem is that if the recipient ($to) do not exist, the error is sent to the user that starts the program and not to the sender ($from).
Is there a solution ?
Thanks for any help. M. Rezzonico