Skip to content

Instantly share code, notes, and snippets.

View jettero's full-sized avatar
🕸️
Hliðskjálf

Paul Miller jettero

🕸️
Hliðskjálf
View GitHub Profile
@jettero
jettero / mailx.pl
Created January 21, 2010 20:18 — forked from anonymous/mailx-thingy.pl
Net::SMTP demo for some solaris people... yonder ...
my $smtp = Net::SMTP->new("mail.gateway.company.com",
Hello=>"sending-hostname.company.com", Debug=>1)
or croak $!;
# This is the SMTP Return path. It's the actual return path of the
# mail and should be real. It's used in the accept/deny decision
# (sometimes) and populates the return-path: header in the email. It's
# the MAIL FROM SMTP command.
$smtp->mail('[email protected]');