in reply to SMTP - Needs authentication.

Take a look at

perldoc Net::SMTP

, particularly the auth() method. You need to have the MIME::Base64 and Authen::SASL modules installed for that to work though.