Hi Monks, Good Morning to all.I am using perl2exe for converting pl to exe files.The problem that i encountered now is pretty different.I am trying to convert script(for sending mail with attachment) into exe using perl2exe.But after converting i am getting error like Cannot find SASL connection library at PERL2EXE_STORAGE/NET/SMTP.pm. Here is the script that i created
use warnings; use strict; use MIME::Lite; our $user = "username\@yahoo.in"; our $pass = "password"; our $attachmentname=$ARGV[0]; our $to = "username\@yahoo.in"; our $from = "username\@yahoo.in"; our $subject = "Hi buddy"; our $message = "Here is the attachment"; emailToSend($to, $from, $subject, $message); sub emailToSend { local ($to, $from, $subject, $message) = @_; my $msg = MIME::Lite->new( From => $from, To => $to, Subject => $subject, Data => $message ); $msg->attach(Type => 'image/gif', Id => 'GDIPlus_Image.gif', Path => 'images.zip', ); MIME::Lite->send('smtp', 'smtp.mail.yahoo.com:25', Timeout => 30, AuthUser=>$user, AuthPass=>$pass); $msg->send(); }
Please kindly help.Is there any other way to create exe.I tried Par but i dont find in ppm.I am using activestate-windows server2008.

In reply to Problem with perl2exe by mecrazycoder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.