Loading ...
Sorry, an error occurred while loading the content.

Mail::Internet Problem

Expand Messages
  • Ricardo Valfreixo
    i get the: Net::SMTP: Bad hostname mailhost at blib/lib/Mail/Util.pm (autosplit into blib/lib/auto/Mail/Util/maildomain.al) line 176 error i really need help
    Message 1 of 3 , Feb 3, 2002
    • 0 Attachment
      i get the:
      Net::SMTP: Bad hostname 'mailhost' at blib/lib/Mail/Util.pm (autosplit into blib/lib/auto/Mail/Util/maildomain.al) line 176
      error

      i really need help on this one.. i'm working on this since 2 pm.. and
      it's 10 pm now.. i'm getting out of answers.. So can anyone please
      help?

      Thank you for the patiente in advance
      Vx



      #
      # Snippet
      #
      (...)
      eval { $smtp = Net::SMTP->new($me->{smtp_server}); };

      if($@){
      $me->Close();
      $me->Message("Servidor de SMTP Inacessivel!");
      die ("Servidor de SMTP Inacessivel!");
      }
      # send the message
      warn "E. sending to $me->{smtp_server}";

      $ENV{SMTPHOSTS} = 'mail.uevora.pt';
      my $result = $mail->smtpsend();

      # close the SMTP connection
      $smtp->quit;


      (...)
    Your message has been successfully submitted and would be delivered to recipients shortly.