in reply to Mail::Sender connection failing under CGI
could it be an authentication issue? IE, the user you are at the command line is permitted to send mail to the server, but the user the web server runs as is not? stab in the dark.
In Section
Seekers of Perl Wisdom