undelivered emails and PHP5 in Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • r_ahimsa_m@poczta.onet.pl

    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 "undelivere d" message).
    I use Linux.
    PLEASE HELP. Thanks.
    /RAM/
  • =?UTF-8?B?SXbDoW4gU8OhbmNoZXogT3J0ZWdh?=

    #2
    Re: undelivered emails and PHP5 in Linux

    r_ahimsa_m@pocz ta.onet.pl wrote:
    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 "undelivere d" 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!!

    Comment

    • Olaf Schinkel

      #3
      Re: undelivered emails and PHP5 in Linux

      r_ahimsa_m@pocz ta.onet.pl schrieb:
      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 "undelivere d" 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.

      Comment

      • C. (http://symcbean.blogspot.com/)

        #4
        Re: undelivered emails and PHP5 in Linux

        On Jul 2, 6:45 pm, Olaf Schinkel <tr...@schinkel .tvwrote:
        r_ahims...@pocz ta.onet.pl schrieb: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 "undelivere d" 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.

        Comment

        Working...