Created
January 12, 2010 23:40
-
-
Save anonymous/275760 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $smtp = Net::SMTP->new("hostename.blarg", Hello=>"my.rev.name", Debug=>1) | |
or croak $!; | |
$smtp->mail('[email protected]'); | |
$smtp->to(qw([email protected] [email protected])); | |
$smtp->data; | |
$smtp->datasend(qq("From: "The Shandorion" <[email protected]>\n)); | |
$smtp->datasend("To: people, people, people\n"); | |
$smtp->datasend("Subject: whatever...\n"); | |
$smtp->datasend("Reply-To: whatever\n"); | |
$smtp->datasend("\n"); | |
$smtp->datasend($msg); | |
$smtp->dataend; | |
$smtp->quit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment