Not really a legal firm...anyway I just installed Mail::Mailer and ran into this:
Can't use string ("From") as a HASH ref while "strict refs" in use at
+/usr/local/lib/perl5/site_perl/5.10.0/Mail/Mailer.pm line 180.
This is the documented method (such as it is) and I don't see how the "From" field can be avoided in sending an email, at least w/ Mail::Mailer since the option (
$MTA->open(From=>$from ..., etc) is what it is.
I also just set up a new system and moved to perl 5.10 and noticed (because of this issue) that I apparently can no longer remove "use strict" (ie, the exact same error occurs). What's that about? Perhaps the module uses strict somewhere, but I doubt it because there are a few of these queries around the web (with no response).
Is there a better module for doing this (sending mail via a MTA) so that I don't have to learn all the little switches or whatever for
postfix?
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.