[PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Alex Chau

I have a php script sending newsletter to a mailing list time by time, 
but some emails are no longer exist, so I need to remove them manually.
Can php detect whether an email address is a valid one, then remove it 
from the list automatically? no matter before or after the newsletter 
has sent.

Thanks in advance.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Martin Towell

You can set the Error-To:  header to some email address that runs a script
to remove the email address - other that that, no, not that I know of.

-Original Message-
From: Alex Chau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] can php detect whether an email address is a valid one?


I have a php script sending newsletter to a mailing list time by time, 
but some emails are no longer exist, so I need to remove them manually.
Can php detect whether an email address is a valid one, then remove it 
from the list automatically? no matter before or after the newsletter 
has sent.

Thanks in advance.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Daniel Masur

get the mx record:


function checkmail ($mailtocheck) {
if (eregi(^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$),
$mailtocheck, $check))
{
if (getmxrr($check[1]...$check[2],$temp))
{
return true;
}
return false; // kein mx gefunden
}
else
{
return false; // syntax fehler
}
}


Martin Towell [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 You can set the Error-To:  header to some email address that runs a
script
 to remove the email address - other that that, no, not that I know of.

 -Original Message-
 From: Alex Chau [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 1:31 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] can php detect whether an email address is a valid one?


 I have a php script sending newsletter to a mailing list time by time,
 but some emails are no longer exist, so I need to remove them manually.
 Can php detect whether an email address is a valid one, then remove it
 from the list automatically? no matter before or after the newsletter
 has sent.

 Thanks in advance.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]