Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::Cmd::code doesn't return value of Net::Cmd::dataend Matt Pounsett 01-10-2005
Posted by Matt Pounsett on January 10, 2005, 9:17 pm
Please log in for more thread options
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->data;
$smtp->datasend( "Foon" );
$smtp->dataend;
print $smtp->code;

is:

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?

Thanks



Similar ThreadsPosted
system return value? January 26, 2007, 5:52 pm
Parsing return message from fetchmail June 27, 2006, 3:04 pm
SSH Modules: Accessing CLI box using SSH and not getting the return output?? November 12, 2006, 11:48 pm
Net::SSH::W32Perl Script hanging when trying to return data March 10, 2005, 1:14 pm
Net::SSH::W32Perl Script hanging when trying to return data March 10, 2005, 1:30 pm
Return keys from $db->DataHash directly into an array September 16, 2007, 11:56 am
Module to return Local Policy Info July 13, 2008, 1:50 pm
perl script for uploading photo and getting the return value of submit February 28, 2006, 1:03 am
$db->DataHash does not return keys/fields in same order as they appear in database September 16, 2007, 11:59 am
ANNOUNCE: Code::Dumper - a ::Dumper for code. Available on CPAN November 21, 2005, 11:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap