> Thanks for all the suggestions. 
>  
> I am now using Mail::Sendmail and the process does continue following a bad
> email address, but I still get a success value back even if the address is
> not valid.  It does bounce the message back to the "from" address, but I'm
> wondering if there's a way to know the address didn't work so I can write a
> log file of bad addresses?

No

When you send a mail with Mail::Sendmail (or anything) you just pass 
it to YOUR mail server, which can't know in advance neither whether 
the domain in the address exists and has a mailserver defined in DNS 
nor whether there is such a user on that server. And since it can 
take a lot of time to try to deliver the mail and fail, the mail 
server doesn't expect you to stay connected and wait for the result.

The best you can get is whether your mail server accepted the 
messages and will try to deliver them.

There is one solution though. You may create a script that will 
process the delivery responses and bind it to an address (the 
way depends on mailserver!). Then if you specify this address as the 
address of the sender in the SMTP conversation (not in the headers!) 
the reports will be sent to the script.

If you used Mail::Sender you'd use 

 $sender->Open({ ..., from => '[EMAIL PROTECTED]', 
        fakefrom => '[EMAIL PROTECTED]', ... });

With Net::SMTP :


 $smtp->mail( '[EMAIL PROTECTED]' );
 $smtp->to( $someone );
 $smtp->data();
 $smtp->datasend("From: [EMAIL PROTECTED]\n");
 ...

Never used Mail::Sendmail

Jenda 

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to