Created
September 12, 2011 07:49
-
-
Save ranguard/1210779 to your computer and use it in GitHub Desktop.
This file contains 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
# Send an email | |
use Email::Sender::Simple qw(sendmail); | |
use Email::Simple; | |
use Email::Simple::Creator; | |
my $email = Email::Simple->create( | |
header => [ | |
To => '"Xavier Q. Ample" <[email protected]>', | |
From => '"Bob Fishman" <[email protected]>', | |
Subject => "don't forget to *enjoy the sauce*", | |
], | |
body => "This message is short, but at least it's cheap.\n", | |
); | |
sendmail($email); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment