[vox-tech] Perl programming problem
Richard S. Crawford
rscrawford at mossroot.com
Thu Jan 13 13:46:20 PST 2005
Mark K. Kim said:
> You have to set the sender (I guess the From: line) to an e-mail address
> that is valid from the internet. "localhost.localdomain" is, from
> unexmail.ucdavis.edu's point of view, is itself, and it knows "richard"
> doesn't exist on its mailing system.
Actually, I do. Here is the relevant code:
my $fromAddress='rcrawford at unexmail.ucdavis.edu';
my $toAddress='rcrawford at unexmail.ucdavis.edu';
my $body="Neo is down as of $timeString\n";
my $mailer=open ({From => $fromAddress, To => toAddress, Subject=>$subject});
print $mailer $body;
$mailer->close();
> Also, look into sendmail's "-f" option.
How would I use that in my code?
--
Sláinte,
Richard S. Crawford (AIM: Buffalo2K)
http://www.mossroot.com http://www.stonegoose.com/catseyeview
"We live as though the world were how it should be,
to show it what it can be."
--"Angel", Season 4 ep. 1
More information about the vox-tech
mailing list