Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    my $to = '####@####.com';
    $mail->send(-to=>"$to",-from=>"$to", -subject=>"$subject");
    $mail->bye;
    
  2. or download this
    Connecting to smtp.gmail.com using tls with LOGIN on port 25 and timeo
    +ut of 60
    Net::SMTPS>>> Net::SMTPS(0.06)
    ...
    Net::SMTPS=GLOB(0x7ff7c22e6fe0)>>> my favorite: LOGIN
    Authentication (SMTP) failed
    Can't locate object method "send" via package "-1" (perhaps you forgot
    + to load "-1"?)