Setting up CPAN::Reporter with gmail

Posted by robbiebow on 7 May, 2009 under geek, perl | Be the First to Comment

First install CPAN::Reporter:

$ cpan
cpan[1]> install CPAN::Reporter
cpan[2]> o conf init test_report
cpan[3]> install Net::SMTP::TLS
cpan[4]> quit

In your home directory you will now have a ~/.cpanreporter/ directory. Edit the ~/.cpanreporter/config.ini file thus:

edit_report=default:ask/no pass/na:no
email_from=mygmailalias@gmail.com
send_report=default:ask/yes pass/na:yes
smtp_server=smtp.gmail.com
transport=Net::SMTP::TLS User mygmailalias@gmail.com Password mygmailpassword Port 587 

In short, you need to add the mail server, port, username and password details to the config. Then it should Just Work.

Add A Comment