So like the title says, I need to send an email via my SMTP server. It's just a simple test email designed to verify the SMTP server is active and doing its job. Here's what I have so far (with email addresses removed):
use lib "/path/to/Net::SMTP/module";
$host = "SMTP SERVER";
$port = 25;
$smtp = Net::SMTP->new($host, Hello => port=>$port)
$smtp->mail("FROM EMAIL ADDRESS");
$smtp->recipient("TO EMAIL ADDRESS");
$smtp->datasend ("This is a test");
When I run this, I get the error:
"SMTP SERVER" is not exported by the Net::SMTP module. Can't continue
+after import errors at line 6.
What does it mean "is not exported"?