in reply to MIME::Lite question

Can you please post the entire program that you are actually trying to run? It seems there are critical pieces of information that you haven't told us yet. For example, I sincerely hope you're not really trying to send mail to 'mymail.info' - or are you? Those are the types of questions that I'd like to see answered by posting the actual code being used. Thanks!

Replies are listed 'Best First'.
Re^2: MIME::Lite question
by Anonymous Monk on Jun 15, 2005 at 15:15 UTC
    use MIME::Lite; #### Start with a simple text message: $msg = MIME::Lite->new( From => 'francis@suresoft.info', To => 'thomas.g@suresoft.info', Subject => 'A message with 2 parts...', Type => 'TEXT', Data => "Here's the GIF file you wanted", ); $msg->send();

    Actually this is the first time i am using this module, i am working in windows 2000 and outlook express mail. For outgoing mails in our company we are using smtp server with ip address(192.168.1.5),and for incoming mail we are using pop3 server with same ip address. The name of the server is Intranet.suresoft.info.

      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.

        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")