http://www.perlmonks.org?node_id=1081520


in reply to How to send mail automatically using MIME::Lite

According to the MIME::Lite documentation, that code won't actually send anything. If you read it more closely you will see that you still have to call the "send" method on your $msg object. Try that.

FWIW, I'd be a bit surprised if "yahoo.com" were actually an SMTP server, but you never know.