[#2481] Help with Perl Packager deployment of script that sends out email
$30-250 USD
Completed
Posted over 7 years ago
$30-250 USD
Paid on delivery
I'm trying to pacakge and deploy a perl script using PP (PAR::Packager) application that sends out an email using an SMTP server via SSL. The .exe is executed at the command line.
When I try to run the .exe on another workstation (Windows 10), I get the following error at the command prompt:
To use SSL please install IO::Socket::SSL with version>=2.007 at Net/[login to view URL] line 70.
When I tried a different workstation (Windows 2012 R2 Server) and get the following error in the form of a dialog box:
TItle: [login to view URL] - System Error
The program can't start because [login to view URL] is missing from your computer. Try reinstalling the program to fix this problem.
Here is my development environment:
Windows 10
Strawberry Perl 5, Version 24, v5.24.0 for MSWin32-x86-multi-thread-64int
The perl script (portion) - note that Freelancer did not like the contact info in the project description, so @ is changed to _at_:
...
use MIME::Lite;
use MIME::Base64;
my $msgfrom = '[login to view URL]';
$msg = MIME::Lite->new(
From => $msgfrom,
To => $sendto,
Cc => '',
Subject => 'Your Daily Reports - ' . $inputfile,
Sender => '[login to view URL]',
Type => 'multipart/mixed',
);
$msg->attach(Type => 'text/html', Data => $html);
$msg->attach(Type => 'application/octet-stream', Path => $fnxlsx_inventory);
my $email = $msg->as_string();
#print Dumper $config;
# Net::SMTP sends the message.
use Net::SMTP;
my $smtp = Net::SMTP->new( Host => $config->{'smtphost'}, Port => $config->{'smtpport'}, SSL => $config->{'ssl'}, debug => 1) or die "Can't connect $@\n";
$smtp->auth($config->{'smtpusername'}, $config->{'smtppassword'});
$smtp->mail($msgfrom) or die "Error:".$smtp->message();
# add bcc...
$sendto .= ',' . $config->{'bcc'} if defined $config->{'bcc'} and $config->{'bcc'} ne ''; # add Bcc
my @tmpsendto = split(',',$sendto);
foreach my $senditto (@tmpsendto) {
print $senditto . "\n";
$smtp->recipient($senditto) or die "Error:".$smtp->message();
}
$smtp->data() or die "Error:".$smtp->message();
$smtp->datasend($email) or die "Error:".$smtp->message();
$smtp->dataend() or die "Error:".$smtp->message();
$smtp->quit or die "Error:".$smtp->message();
...
This is the command I use to package the script:
pp -c -a c:\strawberry\c\bin\[login to view URL] -a c:\strawberry\c\bin\[login to view URL] -a "/strawberry/perl/vendor/lib/MIME/[login to view URL];lib/MIME/[login to view URL]" -F PatchContent=MIME/[login to view URL] -M PerlIO::encoding -B -v 3 -f Bleach -o [login to view URL] [login to view URL]
=================
I've exhausted my "googling" abilities for a solution. I'm looking for someone with expertise to help me get to the finish line and tell me what needs to be done to successfully package this perl script using "pp" so that it can run on the Windows workstations.
Dear Sir !
pp -link c:\strawberry\c\bin\[login to view URL] -link c:\strawberry\c\bin\[login to view URL] -link c:\strawberry\c\bin\[login to view URL] -link c:\strawberry\c\bin\[login to view URL] -M arybase -o my_program [login to view URL]
or
pp -link c:\strawberry\c\bin\[login to view URL] -link c:\strawberry\c\bin\[login to view URL] -link c:\strawberry\c\bin\[login to view URL] -M arybase -o my_program [login to view URL]
thats all
regards
g
$70 USD in 3 days
5.0 (5 reviews)
3.1
3.1
6 freelancers are bidding on average $130 USD for this job
I'm Perl developer with HUNDREDS of completed projects and excellent reviews that's why I'm sure you'll be impressed with my work.
I can help you to compile your script in couple of hours but I'll not use pp (I'll use another tool instead). My exe will work on any Windows platform.
Thanks.
Roman
Hello. More 20 years programming experience.
I need more details to set real time and price.
Regards.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dear Sir, dear Madam,
my name is Wolfgang Backhaus, I am an experienced software developer and system engineer from Germany working in the telecommunications industry. My preferred programming language is Perl.
I have coded with Perl for 20 years, beginning with CGI scripts for the website of my then employer, later using the language to solve very different problems in the OSS (Operating Support Systems) area of one of Germany's mobile network operators, covering sotutions for file transfer applications, network configuration, interprocess communication and many more. Inevitably I did a lot of trouble shooting during this time.
Please check out my portfolio on freelancer.com to learn more about me and my skills.
It would give me great pleasure if You would give the award to me.
Best regards
Wolfgang Backhaus