I use Mail:Sendmail, which sends through SMTP. Early errors are caught by 
the module (syntactically wrong email address, broken communication with 
the server). Later errors (User unknown, ...) are reported as usual by a 
bounce from the server to the From: address.

Not exactly what you asked for, but I find it more robust and more 
flexible: your script can use any mail server and run on any platform.

>I want to send mail using Perl, however, I want to use qmail to send it and
>for qmail to report any failed emails, i.e. bad email addresses, failed
>deliveries, etc.
>
>Would qmail-inject do this for me and if so, does anyone have any simple
>examples using this with Perl?
>
>Many thanks,
>
>Kevin Smith

Reply via email to