My Perl script uses Sendmail to dynamically send out emails to users in our db. I can set the "To:", "From:", "Reply-to:", "Subject:", and "Content:" fields of the email programmatically and it all works wonderously.
EXCEPT - for when the "To:" address is incorrect and the email gets bounced back. The problem is that mails bounced back because they are undeliverable get bounced back to the [Return-path], which my ISP's email server keeps setting to itself. So I never get the bounced back email to warn me that it was not received.
Is there some way, in the context of such a script, either to set [Return-path], or some other way to emulate the behaviour - other than Cc'ing myself ('cause that would look dumb, the sender copying himself)