I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-12-14 07:40:48-08 by cach0rr0
Net::SMTP - returning banner text after final 250 message
g'day folks

Have hit a major stumbling block in a script I'm working on.

brief snip
$smtp->mail($fromuser); $smtp->to($recipient); $smtp->data(); $smtp->datasend("$content"); $smtp->dataend(); $smtp->quit;

I need to read the entire banner response to
$smtp->dataend();

I don't simply need the status code - reason being, I can safely assume a 250 for one, but, the server responds with

250 messageID message accepted for delivery

where messageID is the internal tracking number for the remote host.

later on in my script, I need to reference that messageID. Net::SMTP has the banner() method, but that only returns the 220 response to the initial connection.

I don't need it for DSN or anything like that, just need the messageID (or really, the whole line will do and I can parse it from there).

anyone have any ideas? Help is much appreciated, many thanks in advance. I'm absolutely *stuck* on this one, and once I get past this hurdle the rest is cake.

Again, many thanks in advance.
Direct Responses: 3784 | Write a response
Posted on 2006-12-14 17:43:17-08 by muir in response to 3761
Re: Net::SMTP - returning banner text after final 250 message
Is your issue with Net::SMTP or with Net::SMTP::Receive?
-Dave
Direct Responses: 3792 | Write a response
Posted on 2006-12-14 22:03:05-08 by cach0rr0 in response to 3784
Re: Net::SMTP - returning banner text after final 250 message
cripes...im blind sorry about that, the issue is with Net::SMTP
Direct Responses: Write a response