in reply to sendmail script

I don't see anywhere where you actually send the message. As for your "Success!" message, it will print that regardless of what happens, unless your program dies.

Replies are listed 'Best First'.
Re^2: sendmail script
by keiusui (Monk) on Feb 21, 2006 at 03:01 UTC
    The line that says close (MAIL) should make the e-mail send.

      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.