Sure, in a nutshell, there's an issue with the mail server and its not available (SERVNOTAVAIL). Mail::Sender is noticing the unavailabilty, setting an error code, and then closing the socket to the server.

At its heart Mail::Sender uses SMTP. The protocol is quite simplistic (hence the S) and returns a code with each reply.

The author has decided to reduce the myriad of 4xx and 5xx STMP error replies to a single SERVNOTAVAIL message. In addition, if for some reason he cannot read from the socket (lost connection, crashed machine), he flags that as SERVNOTAVAIL too.

This is one of the disadvantages of using SMTP directly as opposed to an MTA (mail transfer agent) like sendmail. If you drop an email into an MTA, it may try to send the email several times for you. When using STMP directly, you have to decide what to do (drop them to the floor, queue them up for another go-round, etc).

-derby


In reply to Re: Re: Re: Mail::Sender error by derby
in thread Mail::Sender error by neilwatson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.