well,I run the program on windows 98,using the personal web server and I using the activestate perl version 5.6.0.I tried to install the MailTools,but it always fails.I download the MailTools from the CPAN site,and then I tried to install it using the PPM,using the command
ppm>install MailTools
and it said
Error installing package MailTools.Could not locate PPD file.
What is the correct way to get the MailTools installed to the my Perl 5.6 using the PPM.Or is there any other way?
Besides,
My program that I want to run look like this,just to test if the send mail program works,
#!/usr/bin/perl
use Mail::Mailer;
$from_address = "vrempire";
$to_address = "vrempire\@hotmail.com";
$subject = "REGISTRATION FOR NEW MEMBER";
$body = "REGISTRATION FOR NEW MEMBER";
$mailer = Mail::Mailer->new();
$mailer->open({ From => $from_address,
To => $to_address,
Subject => $subject,
})
or die "Can't open: $!\n";
print $mailer $body;
$mailer->close();
When I want to execute it using the command prompt,it returns the message
Bad command or file name
Can't locate auto/Mail/Util/mailaddress.al in @INC (@INC contains: c:/
+Perl/lib c:/Perl/site/lib .) at C:/Perl/lib/Mail/Mailer/smtp.pm line
+21
.
Please help me on this,friends...
Your concern is very appreciated by me.
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.