OK, maybe I'm looking at the wrong module, but when I checked out Email::Send, I got this information:
use Email::Send;
send Sendmail => $message;
Otherwise, the information for Mail::Sendmail gives me:
use Mail::Sendmail;
%mail = ( To => 'you@there.com',
From => 'me@here.com',
Message => "This is a very short message"
);
sendmail(%mail) or die $Mail::Sendmail::error;
print "OK. Log says:\n", $Mail::Sendmail::log;
It seems to me that there must be some sort of "send" instruction.
If you're not using any modules, then perhaps you need to configure sendmail. And if you're not using a module, perhaps doing so would make your life easier. |