in reply to Re^2: MIME::Lite question
in thread MIME::Lite question

Thank you! So that's the entire program? After reading through the docs for MIME::Lite, you might want to specify MIME::Lite->send("smtp"); at the beginning of your program, after the use line.

Replies are listed 'Best First'.
Re^4: MIME::Lite question
by Anonymous Monk on Jun 15, 2005 at 15:36 UTC

    Thanks for your reply, i included that line after use, i am getting the following error.

    Can't locate object method "send_by_intranet.suresoft.info" via packag +e "MIME ::Lite" at C:/Perl/site/lib/MIME/Lite.pm line .

    Also i changed the last line to $msg->send("intranet.suresoft.info")

      Try this instead of the line I previously recommended:
      MIME::Lite->send('smtp', 'send_by_intranet.suresoft.info', Timeout=>60 +);
      (Adapted from the MIME::Lite documentation.)
      Then go back to just $msg->send; . This is basically what jbrugger said in the first post, modified for the specifics of your system and without the if() statement.