-- Bagus Nugroho <[email protected]> wrote (on Saturday, 18 February 2012, 09:32 AM +0700): > I have several list of email address, but some of them were not existing > anymore. > > What is the best approach on Zend_Mail regarding that condition?
Two approaches: * You could write a script that you can run periodically (for instance, via a cronjob) to verify email addresses. Typically, you connect to the server and issue a RCPT TO with the email you want to validate, and see what code it replies with. If you opt for this, do _not_ do it for well-known domains (such as Y!, gmail, msn, etc), as you _will_ be blacklisted. * Add a job to your MTA to process bouncebacks/failures, and remove the emails generating those responses from your list. The second is a better route, typically, as you're not having to manually test the mails, risking blacklisting. Note that _neither_ involves Zend_Mail, really. -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
