Subject: | Errors when calling MailMsg repeatedly |
Date: | Mon, 19 Mar 2012 09:41:41 +0200 |
To: | bug-Mail-Sender [...] rt.cpan.org |
From: | Matti Linnanvuori <matti.linnanvuori [...] portalify.com> |
Hi!
Errors occur when calling MailMsg repeatedly with the same Mail::Sender object:
Mon Mar 19 07:44:32 2012 Error: Can't use string ("Date: Tue, 31 Jan 2012 16:27:
43 ") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.10.
0/Mail/Sender.pm line 1141.
Mon Mar 19 07:52:34 2012 Sending mail:
ctype: text/plain
msg: Your message to 0 sent Sun Jan 1 02:00:00 2012 was delivered
In-Reply-To: 8f970b1b-f8a3-4c78-aa24-3b8e22056487
Date: Mon, 19 Mar 2012 07:52:34 +0200 (EET)
charset: utf-8
reply: 0@mobile.portalify.com
to: eddie@example.com
from: 0@mobile.portalify.com
replyto: 0@mobile.portalify.com
encoding: quoted-printable
Mon Mar 19 07:52:52 2012 Error: Can't use string ("In-Reply-To: 8f970b1b-f8a3-4c
78-") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.10.
0/Mail/Sender.pm line 1141.
Version 0.8.13.
The code calling Mail::Sender is as follows:
state $sender;
$sender = new Mail::Sender { smtp => $mail_host } unless defined $sender;
my $ref = ref $sender->MailMsg( \%parameters );
regards, Matti Linnanvuori