in reply to Capture Net:::SMTP debug output in a CGI script

Try CGI::Debug. Put use CGI::Debug on the second row, and you're good to go.