Skip to content

Instantly share code, notes, and snippets.

@eniocarboni
Created August 31, 2018 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eniocarboni/33c12cbee12e54e544117b60e514a5ac to your computer and use it in GitHub Desktop.
Save eniocarboni/33c12cbee12e54e544117b60e514a5ac to your computer and use it in GitHub Desktop.
Simple local test on smtp protocol with Net:SMTP
#! /usr/bin/perl
use Net::SMTP;
$smtp=Net::SMTP->new(Host=>'localhost', Debug=>1);
die "Unable to connect\n" unless $smtp;
print $smtp->banner();
$smtp->quit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment