Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Log4perl-Appender-SMTP CPAN distribution.

Report information
The Basics
Id: 127825
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Log-Log4perl-Appender-SMTP

People
Owner: odc [...] cpan.org
Requestors: mustafahsyed [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.04



Subject: email appender - multiple recipients
Date: Wed, 28 Nov 2018 00:42:41 +0000
To: "bug-log-log4perl-appender-smtp [...] rt.cpan.org" <bug-log-log4perl-appender-smtp [...] rt.cpan.org>
From: mustafa syed <mustafahsyed [...] hotmail.com>
Hi, I am unable to send email to MULTIPLE recipients using following code, can you please let me know what I need to do to make it work: my $email_appender = Log::Log4perl::Appender::SMTP->new( Host => "localhost", Hello => "test.org", Timeout => 20, Debug => 1, from => "test\@abc.org", subject => "test", to => "\<test\@abc.org\>,\<another\@abc.org\>" ); $email_appender->log(message => "Error loading data"); Thanks, Mustafa.
Hi, You are right. It cannot work because the Net::SMTP to() method expects a list, but Log::Log4perl::Appender::SMTP only passes a single value. To make it work, you would need to modify Log::Log4perl::Appender::SMTP to use split() on the 'to' field. I'll try to work on it but I don't have much free time these days. On Tue Nov 27 19:42:50 2018, mustafahsyed@hotmail.com wrote: Show quoted text
> Hi, > > > I am unable to send email to MULTIPLE recipients using following code, > can you please let me know what I need to do to make it work: > > > my $email_appender = Log::Log4perl::Appender::SMTP->new( > Host => "localhost", > Hello => "test.org", > Timeout => 20, > Debug => 1, > from => "test\@abc.org", > subject => "test", > to => "\<test\@abc.org\>,\<another\@abc.org\>" > ); > > $email_appender->log(message => "Error loading data"); > > Thanks, > Mustafa.
Hi Mustafa, this issue should be solved in v0.04 available on CPAN.