Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / PHP / General PHP Topics / July 2008



Tip: Looking for answers? Try searching our database.

undelivered emails and PHP5 in Linux

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
r_ahimsa_m@poczta.onet.pl - 02 Jul 2008 18:00 GMT
Hello,
I am writing a program in PHP5 using mail() function. I need to know if
there's any method to check if there was return email to server
(with "undelivered" message).
I use Linux.
PLEASE HELP. Thanks.
/RAM/
Iván Sánchez Ortega - 02 Jul 2008 18:09 GMT
> I am writing a program in PHP5 using mail() function. I need to know if
> there's any method to check if there was return email to server
> (with "undelivered" message).

No, because returned mail is not returned to the originating server, but to
the sender email address.

Signature

----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

¡¡Te he dicho diez millones de veces que no exageres!!

Olaf Schinkel - 02 Jul 2008 18:45 GMT
r_ahimsa_m@poczta.onet.pl schrieb:
> Hello,
> I am writing a program in PHP5 using mail() function. I need to know if
[quoted text clipped - 3 lines]
> PLEASE HELP. Thanks.
> /RAM/
You can use the IMAP functions to check if there are Mails.
But some undeliverable mails are not immediatly returned.
C. (http://symcbean.blogspot.com/) - 04 Jul 2008 13:16 GMT
> r_ahims...@poczta.onet.pl schrieb:> Hello,
> > I am writing a program in PHP5 using mail() function. I need to know if
[quoted text clipped - 6 lines]
> You can use the IMAP functions to check if there are Mails.
> But some undeliverable mails are not immediatly returned.

You should NEVER try to check for a failed email in the same script
that created the email unless you have designed the script to run as
daemon. It just takes too long.

If it were me, I'd go with recording outgoing mails in a database and
create a PHP script to run as a procmail filter to pick up bounces and
flag them in the DB. But its equally valid to pool a mailbox.

C.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.