in reply to Re^3: Net::SMTP Module query
in thread Net::SMTP Module query

Hi Karl, I tried your code but the email still isn't being received. Must be a security issue on the server.

Replies are listed 'Best First'.
Re^5: Net::SMTP Module query
by karlgoethebier (Abbot) on Nov 12, 2012 at 13:08 UTC

    May be but anyway take a look at this:

    #!/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);

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      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).