title: Installing Net::SMTP::SSL
body: <p>Hello I have run across a problem when I try to use Net::SMTP::SSL on my Mac (running OS X 10.10).  I have a perl script that runs fine using Net::SMTP::SSL, it looks like this:</p>
  
  <pre><code>use Net::SMTP::SSL;
  
  use strict;
  use Carp;
  use Pod::Usage;
  
  sub send_mail {
  my $to = 'phone@server.com';
  my $subject = $_[1];
  my $body = $_[2];
  
  my $from = 'mail@server.com';
  my $password = 'password';
  
  my $smtp;
  
  if (not $smtp = Net::SMTP::SSL-&gt;new('smtp.gmail.com',
      Port =&gt; 465,
      Debug =&gt; 1)) {
          die "Could not connect to server\n";
      }
  
  $smtp-&gt;auth($from, $password)
  || die "Authentication failed!\n";
  
  $smtp-&gt;mail($from . "\n");
  my @recepients = split(/,/, $to);
  foreach my $recp (@recepients) {
      $smtp-&gt;to($recp . "\n");
  }
  $smtp-&gt;data();
  $smtp-&gt;datasend("From: " . $from . "\n");
  $smtp-&gt;datasend("To: " . $to . "\n");
  $smtp-&gt;datasend("Subject: " . $subject . "\n");
  $smtp-&gt;datasend("\n");
  $smtp-&gt;datasend($body . "\n");
  $smtp-&gt;dataend();
  $smtp-&gt;quit;
  }
  
  # Send away!
  &amp;send_mail('mail@server.com', 'Server just blew up', 'Some more detail');
  </code></pre>
  
  <p>I also have another script (in a separate folder) that starts off as:</p>
  
  <pre><code>#!/usr/bin/env perl -Ilib
  use Net::SMTP::SSL;
  </code></pre>
  
  <p>my problem is that the second script doesn't work.  I get a command line error reporting it can't find Net/SMTP/SSL.pm in @INC</p>
  
  <p>I have the problem narrowed down to the shebang part #!/usr/bin/env perl -Ilib but I haven't a clue how to fix it. Any suggestions?</p>