At 12:38 PM 6/7/2001, you wrote:
>Hi,
>if I do a search for Mail::Mailer I get back that its available from
>http://www.ActiveState.com/packages:
>when I do install Mail::Mailer I get the my previous error.
>
>Strange though, I do 'search Mail' as you suggest - but I do not get the
>list you mention, just says 'Packages available from
>http://www.ActiveState.com/packages:'
>Something is awry!
>
>[I see earlier today someone was having similar grief with ppm install -
>see 'ppm> install not working' from [EMAIL PROTECTED]]
It just looks as if this particular module isn't available for that
platform. (That's generally what a not found PPD message means from
PPM.) If you an use the CPAN module, and have a make utility, you can
install it that way. Check out this URL for a list of modules that are
available through PPM.
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Packages
But I would just suggest that you use Net::SMTP. It comes with ActivePerl
and it's got a decent interface.
Below is a bit of a recipe for it. Assign sensible values to the UPPERCASED
variables. I think I copied this from the man page, and if I remember,
it's pretty easy to follow. Look it up with perldoc Net::SMTP, or in the
HTML docs.
my $smtp = Net::SMTP->new($MAIL_SERVER,
# Debug => 1, # <- Uncomment to see debugging
# info for mail connection.
);
# Set the sender, then recipient, then send the message, then close the
# connection.
$smtp->mail($MAIL_SENDER);
$smtp->to(@MAIL_RECIPIENTS);
# or $smtp->to($MAIL_RECIPIENT); for a single send-to address
$smtp->data($MESSAGE);
$smtp->quit();
$MESSAGE is the content of the message. You might want to use some sort of
formatter to make the email look pretty. (Text::Autoformat comes to mind.)
I hope this helps.
Later,
Sean.