Leon, et al --

...and then lz said...
% 
% David,
% 
% Thank you for useful info!

Happy to help!


% 
% But as I can see this approach won't catch the problem
% if the incorrect email was specified.... ?

Hrmmm...  You mean if $mailAddress was incorrectly provided?  No, it
won't.  If mailx exited successfully then that's what you'll get, even if
the user provided "joeb" instead of "joeblow" and thus generates a
bounce.

If you want to know how to detect the latter, I suspect that it either
gets really messy, with you setting your Reply-To: or other bounce
headers to direct to another invocation of your script, or that you'll
need to do the whole mail transaction yourself with some Mail module --
and that *still* won't take care of all errors since you might hand off
to an interim server who happily accepts it and later bounces it because
of a quota problem or a downed host or whatever.

You can only make something just so foolproof before the fools get better
again ;-)


% 
% Thank you!


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg25487/pgp00000.pgp
Description: PGP signature

Reply via email to