Well, SMTP is quite well designed,
how do you propose one would do encryption with Net::Cmd?
It's not an easy task, I already tried it with Net::FTP, and failed.
Also, Net::CMD follows rather synchronous operation ( you send a command, and then hang until your receive status report for that ), and you can't receive any message unless
you check the server.
use Net::CMD;
....
$n->command("MSG service12@host.tld");
$x=$n->response();
What happens when I receive a message from someone before server sends 'OK' response to me?
And that's exactly the main point - most 'classic', well-designed protocol work like that, they don't expect the server to send some message out of the blue (irc being the only exception I know).
Can you see the problem here? |