Hello... I need to automatically send email from .pl's or .cgi's and I don't know how to best do it but when I try the code below, I get an error saying that 550 relays haven't been enabled by the administrator.
#!/usr/bin/perl
use Mail::Sendmail;
%mail = ( To => 'piptigger@hotmail.com',
From => 'pip@binq.org',
Message => "This is a very short message"
);
sendmail(%mail) or die $Mail::Sendmail::error;
print "OK. Log says:\n", $Mail::Sendmail::log;
What do I need to do to enable such 550 relays? and is there a better way to send dynamic emails from a script? Thanks muchly. TTFN & Shalom.
-
PipTiggerp.s. Initiate Nail Removal Immediately