Hi,
I can't seem to get the new perl Email:: modules working under PerlApp. A stripped down script below. It should fail with "unable to establish SMTP connection", and then a trace. When built with PerlApp (standard options), it fails with "Don't know how to handle Email::Simple".
My environment:
Windows (XP, Vista, 7)
Perl 5.8.7 build 827
PerlApp 8.2.1
Email::* modules all from ppm.
Any thoughts?
use Strict;
use warnings;
use Throwable;
use Throwable::Error;
use StackTrace::Auto;
use Email::Simple;
use Email::Simple::Creator;
use Email::Sender;
use Email::Sender::Success;
use Email::Sender::Transport;
use Email::Sender::Role::HasMessage;
use Email::Sender::Role::CommonSending;
use Email::Sender::Transport::SMTP;
use Email::Sender::Transport::SMTP::TLS;
use Try::Tiny;
use MIME::Base64;
use Authen::SASL;
my $sender = Email::Sender::Transport::SMTP->new(
host => 'smtp.fake.host.net',
port => 25,
sasl_username => 'spam@ilikespam.com',
sasl_password => 'spam',
);
my $message = Email::Simple->create(
header => [
From => 'spam@ilikespam.com',
To => 'spam@ilikespam.com',
Subject => 'Subject',
],
body => 'Content.',
);
$sender->send($message, {
from => 'spam@ilikespam.com',
to => [ 'spam@ilikespam.com'],
});
I also found this problem - have you found a solution ?
Has any found a solution to this??
http://bugs.activestate.com/show_bug.cgi?id=91687
--bind Email/Abstract/EmailMIME.pm[file=C:\perl1205\site\lib\Email\Abstract\EmailMIME.pm,extract]
with the perl1205 path adjusted to the actual install path.