in reply to Re: sendmail script
in thread sendmail script

The line that says close (MAIL) should make the e-mail send.

Replies are listed 'Best First'.
Re^3: sendmail script
by spiritway (Vicar) on Feb 21, 2006 at 03:41 UTC

    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.