#!/usr/bin/perl use strict; use warnings; use MIME::Lite; my $msg = MIME::Lite->new( From => 'from@isp.com', To => 'to@isp.com', Subject => 'Subject', Type => 'text/plain', Data => q{this's an email!!} ); $msg->send('smtp','stmp.myisp.com', AuthUser=>'user',AuthPass=> 'pass');