help! Mailer

M

Murugesh

Hi,

I tried the following code in Windows after installing Mail::Mailer module
#!/usr/bin/perl
use Mail::Mailer;
$from_address="map\@abcd.com";
$to_address="rek2345\@yahoo.com";
$subject="hi";
$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 compiled it shows,
Died @C:\perl\site\lib/Mail/Mailer.pm

the same program works in Solaris.Could you help what is going on

Thanks,
Appu
 
D

David K. Wall

Murugesh said:
I tried the following code in Windows after installing
Mail::Mailer module
#!/usr/bin/perl
use Mail::Mailer;
$from_address="map\@abcd.com";
$to_address="rek2345\@yahoo.com";
$subject="hi";
$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 compiled it shows,
Died @C:\perl\site\lib/Mail/Mailer.pm

the same program works in Solaris.Could you help what is going on

Check the docs for Mail::Mailer. It tries to send mail using
sendmail or qmail, neither of which is likely to exist on a Windows
system, or by using an SMTP server, but you didn't specify one.
 
M

Murugesh

David said:
Check the docs for Mail::Mailer. It tries to send mail using
sendmail or qmail, neither of which is likely to exist on a Windows
system, or by using an SMTP server, but you didn't specify one.
I ran the program with --smpt <server-name> option.But it didnt work
but hangs.What could be wrong?
 
D

David K. Wall

Murugesh said:
I ran the program with --smpt <server-name> option.But it
didnt work but hangs.What could be wrong?

Perhaps your veeblefitzer is clogged. I see no --smpt option in the
Mail::Mailer docs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top