in reply to instantiating an smtp object

Hi Datz_cozee75,

The error message tells you that $smtp is undef, and a quick look at the Net::SMTP docs tells me that the error message will be in $@, so you should be able to write something like

my $smtp = Net::SMTP->new(Host => $host, Debug => 2) or die "Net::SMTP failed: $@";

to find out what the problem might be.

Regarding alternatives, a while back I posted a brief example using Email::Simple and Email::Sender at Re: sendmail - worried illegal chars.

Hope this helps,
-- Hauke D