in reply to Re^2: MIME::Lite behaving strange
in thread MIME::Lite behaving strange

You set 'Filename' to test.txt, but Filename is only how the file is called in the attachment. The file itself should be found in 'Path'. So Path     => '/path/to/the/file/test.txt' (or Path => 'test.txt' if the file is in the current path) would be more appropriate to get anything useful (with appropriate values for /path/to/the/file)

Replies are listed 'Best First'.
Re^4: MIME::Lite behaving strange
by bar10der (Beadle) on Apr 02, 2009 at 07:39 UTC
    Ah...that was it then!! Many thanks for helping me out. Really appreciate your help.
Re^4: MIME::Lite behaving strange
by Anonymous Monk on Jul 22, 2015 at 06:03 UTC
    it is throwing me error : Failed to connect to mail server: Invalid Argument on this line: $msg->send; where the arguments passed are same as shown above
      it is throwing me error : Failed to connect to mail server: Invalid Argument on this line: $msg->send; where the arguments passed are same as shown above

        it is throwing me error : Failed to connect to mail server: Invalid Argument on this line: $msg->send; where the arguments passed are same as shown above

        so you're also using 'server name' and this is a real name that exists?