I've tried using these different modules given by Perl for sending email:
I cannot figure out whats wrong. Is there any pre-setup required for these modules to work?
I've tried using these different modules given by Perl for sending email:
I cannot figure out whats wrong. Is there any pre-setup required for these modules to work?
Email::Sender is as of 2009 the best sending module; it needs no pre-setup. You configure the transport, e.g. SMTP, and its options, e.g. hostname, at runtime. See the linked synopsis.
I use Net::SMTP because it's a standard Perl module. This means it's always available no matter which machine I'm on.
Net::SMTP
is not quite as simple as specific Email modules, but it still doesn't require an advanced degree in rocket science either.
Here's an example where I'm using it. Look at lines numbers 767 to 817.