Skip Menu |

This queue is for tickets about the POE-Component-SMTP CPAN distribution.

Report information
The Basics
Id: 4639
Status: open
Priority: 0/
Queue: POE-Component-SMTP

People
Owner: Nobody in particular
Requestors: hachi [...] cpan.org
Cc:
AdminCc:

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



Subject: Multiline SMTP responses are not possible using constants in Server::SMTP
$heap->{client}->put( SMTP_OK, "foo", "bar" ); concats foo and bar together, and prepends a "250 " on it, which means that it's not possible to get an output like 250-foo 250 bar when using the constants.
I just ran into this. It seems to be a documentation problem as you can do what you want by passing a array of outputs. So you'd do: $heap->{client}->put( SMTP_OK, ("foo", "bar") ); On Thu Dec 11 11:21:45 2003, HACHI wrote: Show quoted text
> $heap->{client}->put( SMTP_OK, "foo", "bar" ); > > concats foo and bar together, and prepends a "250 " on it, which means > that it's not possible to get an output like > > 250-foo > 250 bar > > when using the constants.