Hi Ajit,
This post for help with Mail::Sender package ... seems to have
gone unanswered for sometime now ... unless I've
missed a post and/or someone has replied directly
to you missing the list ...
Anyway, this is exactly the kind of PERL application that
gives Integrity to this open source tool as being
High Level ... using it in this fashion at least to
send email based on user defined conditions is critical
to Chaining technoligies and Automated processes ...
So, needing something like this myself ... KINTANA wouldn't
do it ... (very expensive application though)
I don't mind working thru this with you.
Firstly, the code snippet you provided looks to be verbatim
from the example in Jenda Krynicky's help file on the Sender.pm
module she has written. You've made the custom changes to the
from and to email addresses and that looks OK,
From my own experience, I started with the same plan ... however,
I needed to add the following line to tell the ActiveState perl
installation
the source directory I'm using to look for the Sender.pm
I used something like this:
BEGIN {unshift(@INC, "./Mail");}
# Each entry in the @INC array is a directory that Perl searches to
locate the module.
# Adding a BEGIN statement to the code updates the @INC array.
Additionaly, check the smtp server your using .... and make sure you're
connected
and on-line ...
Give this a try and good luck
SunDog
=======================================================
At 09:49 AM 8/10/01 -0400, you wrote:
>I am using ActiveState perl on Windows NT 4.0 platform. I want to send
>emails with attachments. I have downloaded package Sender.pm and copied it
>to my c:\perl\lib\mail folder. Do I need to do anything special to install
it ?
>When I use it in the following script :
>
> use Mail::Sender;
>
> $sender = new Mail::Sender {smtp => 'snowwhite.bostednt.com', from
>=> '[EMAIL PROTECTED]'};
> $sender->MailFile({to => '[EMAIL PROTECTED]', subject => 'Here is
>the file',
> msg => "I'm sending you the list you wanted.",
> file => "c:\\ajit\\perl\\scratchpad.pl"});
> exit;
>
>The script hangs, the control never comes back. Please tel me what I am
>doing wrong ?
>
>Thanks,
>
>Ajit Tawde
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]