• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 880
  • Last Modified:

Mail::Sender for windows

I am trying to get this but ave not been able to find a good copy on windows xp


please advice on where i can pick up a good copy from?

My goal is to send mails with attachments in perl on wndows xp
thanks,

0
khyberman
Asked:
khyberman
  • 2
1 Solution
 
khybermanAuthor Commented:
please note that i tried to download:

http://search.cpan.org/~jenda/Mail-Sender-0.8.08/Sender.pm

and this seems to be currupt. when i try to untar / ungz usin power archiver.
0
 
sstoukCommented:
All you need to do is:

go to your command prompt

execute command:
echo %PATH%

Note one of the Perl's paths in the list:
e.g. C:\Perl\bin\

Create a Folder called "Mail" under that path:
C:\Perl\bin\Mail\

Use the source of the module and save it as a text file with the name: Sender.pm

From this location, just save it as a text file with Sender.pm as a name

http://search.cpan.org/src/JENDA/Mail-Sender-0.8.10/Sender.pm
C:\Perl\bin\Mail\Sender.pm

Run your script...




0
 
FishMongerCommented:
The easiest and probably the best method to install the module is to use ppm (Perl package manager).

ppm install Mail-Sender

This will download and install the module into its default/proper location (c:\perl\site\lib\Mail).  If you use sstouk's method, you'll probably also need to add a use lib statement to your script so that the module will be found.

use lib 'C:/perl/bin';
use Mail::Sender;

If you have problems with Mail::Sender, you can use Mime::Lite instead.
http://search.cpan.org/~yves/MIME-Lite-3.01/lib/MIME/Lite.pm
0
 
FishMongerCommented:
For example, I just installed it on my XP machine like this:

C:\>ppm install Mail-Sender
====================
Install 'Mail-Sender' version 0.8.10 in ActivePerl 5.8.6.811.
====================
Downloaded 45231 bytes.
Extracting 7/7: blib/arch/auto/Mail/Sender/.exists
Installing C:\Perl\html\site\lib\Mail\Sender.html
Installing C:\Perl\site\lib\Mail\Sender.pm
Installing C:\Perl\site\lib\Mail\Sender\CType\Ext.pm
Installing C:\Perl\site\lib\Mail\Sender\CType\Win32.pm
Successfully installed Mail-Sender version 0.8.10 in ActivePerl 5.8.6.811.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now