Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP to ck email & update MySQL?

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
I manage an automated email reminder program that gets a fairly large volume of returned mail as undeliverable...

Could I write a PHP application to check the reply email address for returns, parse through the data for the bad email addresses and write them to a MySQL database, so that I can compile a list of known invalid addresses for correction or deletion from the list?

TIA,

-Allen
 
OK,

Bad question...

I know how to SEND email w/ PHP, even VERIFY an email address w/ PHP...

How do I receive email from an existing email account w/ PHP???

-ADM
 
PHP's mail() function will send the email, but it has no function to connect to a server and verify the message. Check out Zend's code vault ( There may be some scripts in there.

Some mail servers will barf immediately after the "rcpt to:" directive is issued, but there is no guarantee of that -- some will quietly accept the email and bounce it after the connection is broken. So the only way to guarantee an email was received is either through the use of delivery reciepts (not all servers of clients support them) or by sending the mail and waiting some length of time for a bounce message. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top