in reply to Re: How to send email using Email::MIME & Email::Sender::Simple?
in thread How to send email using Email::MIME & Email::Sender::Simple?

See my suggestions here: if you could show @INC for the script running from the command line and the script running from the exe, that might give some clues. Try also adding print $Email::Sender::VERSION; and seeing what that outputs, whether the versions are different. And also search the @INC paths in the filesystem for multiple installed copies of the corresponding Email:: modules, and their versions, and let us know.

Replies are listed 'Best First'.
Re^3: How to send email using Email::MIME & Email::Sender::Simple?
by Magkumar (Novice) on May 04, 2020 at 15:41 UTC

    Hi Haukex,

    Thanks for your suggestion. I did verify the module versions of .pl vs .exe. But here's what I found and which resolved my issue, I packed the perl using following pp command

     pp -x -o test.exe test.pl

    -x in pp executed my perl script completely and identified all runtime dependencies on the fly, then gave a compatible exe. This resolved my problem.

    Thanks a lot again.