RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails
| From: | Jon Farmer | Date: | Tue, 28 Aug 2001 14:13:48 +0000 |
| Subject: | RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64800@lists.php.net to get a copy of this message | ||
Well on submission of the email you could try contacting their mail server
and pretend to a have a mail for them using SMTP.
If you get a "recipient ok" or similar message.. ,thre is a code for it,
then at least the server accepts mail for that address. You might be better
off croning this rather than have the user wait on a http request.
Alternatively there is a perl mod that does this as well.
Secondly you could write a script that downloads the mail from root and
deletes out the database anything that bounces. You could even delete these
messages from the root account once done
HTH
Regards
Jon
--
Jon Farmer Õ¿Õ¬
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to pgpkey@bctech.co.uk
-----Original Message-----
From: Sebastian Stadtlich [mailto:Stadtlich@mediaworx.de]
Sent: 28 August 2001 15:08
To: 'Php-General (E-Mail)
Subject: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails
Hi all
I'm facing the Problem that lots of my users are too stupid to write
their email correct.
When i mail them with php a return email is send to me by their
mailserver, which
results in LOTS of mail for the root account.
Can i get sendmail to put the returned emails in a file? so that i can
check that file with php
and delete those mails from my DB ?
or is there a way to check the email when they enter it in a form
(online versus their mailserver)?
i already check for wrong email syntax, but that does not solve the
problem...
Sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net