Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 2nd, 2008, 06:05 PM
r_ahimsa_m@poczta.onet.pl
Guest
 
Posts: n/a
Default undelivered emails and PHP5 in Linux

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/
  #2  
Old July 2nd, 2008, 06:15 PM
=?UTF-8?B?SXbDoW4gU8OhbmNoZXogT3J0ZWdh?=
Guest
 
Posts: n/a
Default Re: undelivered emails and PHP5 in Linux

r_ahimsa_m@poczta.onet.pl wrote:
Quote:
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.

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

¡¡Te he dicho diez millones de veces que no exageres!!
  #3  
Old July 2nd, 2008, 06:55 PM
Olaf Schinkel
Guest
 
Posts: n/a
Default Re: undelivered emails and PHP5 in Linux

r_ahimsa_m@poczta.onet.pl schrieb:
Quote:
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/
You can use the IMAP functions to check if there are Mails.
But some undeliverable mails are not immediatly returned.

  #4  
Old July 4th, 2008, 01:25 PM
C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
Default Re: undelivered emails and PHP5 in Linux

On Jul 2, 6:45 pm, Olaf Schinkel <tr...@schinkel.tvwrote:
Quote:
r_ahims...@poczta.onet.pl schrieb:Hello,
Quote:
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/
>
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.
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles