#!/usr/bin/perl
use MIME::Lite;
use strict;
use warnings;
my $msg = MIME::Lite->new(
From => 'someone@somewhere',
To => 'someone@nowhere',
Subject => 'It is a test',
Data => 'I prefere this module.'
);
$msg->send('smtp','host', Debug => 1);
Thanks Karl,
I've actually included the MIME::Lite module as part of my overall script but wanted to get Net::SMTP working first as this module is already installed on the particular server i'm working on.
I have asked for the Mime::Lite module to be installed and am still waiting a good 2 weeks since I originally asked (I don't have access to install this module on the server myself).