my $mailer = 'hostname'; $msg->send_by_smtp($mailer); # do some error checking