Net::Cmd::code doesn't return value of Net::Cmd::dataend

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

It seems to me that calling $smtp->code after $smtp->dataend should return the
status of the last sent message, but this is not the case...

The output from this series of commands:

$smtp->datasend( "Foo\n" );
print $smtp->code;


250 Enter mail, end with "." on a line by itself

Which is the result of the data() call, not the dataend() call.  

Is there a way to retrieve the result code and result message from a call to
dataend that I'm just missing?


Site Timeline