Numerous pure-Perl solutions exist for sending email. The one I am most familiar with is
Mail::Sendmail. You should be able to edit the defaults to something sensible, and ftp the module (Sendmail.pm) to what will probably be the
c:/perl/lib/site_perl/Mail directory. I suspect the site_perl directory will exist, but you might have to mkdir the Mail subdirectory.
Once you get that far, the main trick will be to build up the body of the message by concatenating to a string, and then doing something like:
my %mail;
$mail{'From'} = 'me@example.com';
$mail{'To'} = 'you@example.com';
$mail{'Subject'} = 'The moon is blue';
$mail{'Body'} = $some_humongous_string;
sendmail( %mail ) or warn "sendmail error: $Mail::Sendmail::error\n"
+;
An alternative is to use Net::SMTP, which has a number of fans around here. I've used it a couple of times with satisfactory results.
In any event, you should be able to drag postmail to the recycle bin in short order!
print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
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.