title: Error using Mail::Sendmail to send email from perl script using a windows machine
body: <p>I have a simple test script for sending an email to myself using the cpan module Mail::Sendmail.  I am operating on a Windows machine using Strawberry Perl and through the command line, everything seems fine.  I am receiving an error that says <code>connect to localhost failed (No connection could be made because the target machine refused it.)</code></p>
  
  <p>My script is:</p>
  
  <pre><code>use Mail::Sendmail qw(sendmail %mailcfg);
  $mailcfg{from} = 'dhagan@idatech.com';
  
  print "Testing Mail::Sendmail version $Mail::Sendmail::VERSION\n";
  print "Default server:  $Mail::Sendmail::mailcfg{smtp}-&gt;[0]\n";
  print "Default sender:  $Mail::Sendmail::mailcfg{from}\n";
  
  %mail = (   To      =&gt;  'dhagan@email.com',
              From    =&gt;  'dhagan@email.com',
              Message =&gt;  'Test!'
  
          );
  
  sendmail(%mail) or die $Mail::Sendmail::error;
  
  print "OK.  Log says:\n", $Mail::Sendmail::log;
  </code></pre>
  
  <p>Is there any reason this would occur?</p>