Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This code is working fine in my laptop.
my $sender = new Mail::Sender ({smtp => 'outbound.something.com', fro +m => 'gsp-bizops@somting.com'}) || print ("0","Failed when creating +Mail object.$Mail::Sender::Error"); $sender->MailMsg ({to => $emailId, subject => $subject, msg => $m +sg_body , client => 'localhost'}) || print ("0","Filed when send mai +l.$Mail::Sender::Error"); $sender->Close;
The same code when i tried in server which is also a windows based is unable to send email . please suggest what settings difference leads to this failure in sending mails.

2006-09-27 Retitled by planetscape, as per Monastery guidelines

( keep:0 edit:11 reap:0 )

Original title: 'Error in sending mail using mail;:sender'

Replies are listed 'Best First'.
Re: Error in sending mail using mail::sender
by davorg (Chancellor) on Sep 26, 2006 at 08:46 UTC

    At which stage does the error occur? What error message are you getting? Without more details we would just be guessing.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg