Gavin Henry wrote:
On Thursday 10 Mar 2005 20:28, Wiggins d'Anconia wrote:
[snip]



Also note this can be somewhat dangerous since you will die anytime a
message fails to send. The problem is, what if you have 10 messages and
message 3 fails? 4-10 don't get sent, the problem is that 1-2 have been
sent.  You might capture all failures to a list of failed addresses,
etc. warning on each pass. Then print some sort of good/bad report so
you know which ones need to be resent.  As you can tell this problem
gets magnified very quickly as the number of addresses in your list goes
up.


Wouldn't sendmail just have them in a queue, and I would get I message later on?


What if the process could never launch sendmail? Granted it is not as likely, but if you have 500 messages, and you get through 343 and then some admin comes along and shuts down sendmail.....


What if I changed die, to warn in:

or die $Mail::Sendmail::error;

and stuck that in a file?


Up to you how you would like to handle it, but that is certainly one way to do it.


http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to