I'm posting anonymously 'cause I'm actually a little embarrassed at how much trouble I'm having at finding a solution...
I need a module for sending email with the following characteristics:
- As few dependencies as possible
- Dead-simple interface
- Sends via SMTP
- Ability to set the SMTP server
I don't need attachments or anything fancy like that (though I wouldn't reject it!) just plain-text email. Here's an example of how simple I'm hoping for...
use Email::Foo;
my $msg = Email::Foo->new();
$msg->smtp_server('smtp.mydomain.com');
$msg->set_from('me@mydomain.com');
$msg->add_recipient('joe@domain.com');
$msg->add_recipient('larry@otherdomain.com');
$msg->set_subject('Regarding your widget purchase');
$msg->set_body(<<'END_MSG');
Hello, Good Sir!
Would you like a free cookie with your orange juice?
My hovercraft is full of eels!
Please remember to wear a sweater when crossing the street.
Regards, Mortimer J. Paulinskil
END_MSG
$msg->send() or print $msg->error();
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.