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.