check for new mail automatically in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • realin
    Contributor
    • Feb 2007
    • 254

    check for new mail automatically in php

    hi guys,

    i found a php mail class on phpclasses i just want to know how can i receive email after specific time.

    Allright, let me be more clear, i want that as soon as user sends an email to a particular email address, the reply for a thread is posted. So for that purpose i want my script to check for the new emails, there are two ways to do that, which i could think of.

    1) I click a button manually everytime i need to check for new emails.
    2) Cron jobs

    Guys none of the two options are seem to be feasible at this stage, can there be some other way to do that.. I just want a listener who can listen to my incoming emails and perform an action in return of it ..

    cheers !!
    Realin !
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    This is almost the same problem as in a previous thread by you, but it'll stay for now.

    To get everyone at the same level, why don't you answer the question by aktar in your other thread HERE ?

    Ronald

    Comment

    • realin
      Contributor
      • Feb 2007
      • 254

      #3
      Originally posted by ronverdonk
      This is almost the same problem as in a previous thread by you, but it'll stay for now.

      To get everyone at the same level, why don't you answer the question by aktar in your other thread HERE ?

      Ronald
      hiya ronald,

      I did subscribe to the thread, but it just gets unsubscribed automatically and everytime, i need to subscribe to it manually, pbmods (moderator) told me they are wokring on this issue, but i guess its still not resolved as if now..
      Now i have replied to the previous thread..

      The earlier thread was about setting up a mail server and this thread was to ask that how can i check email with my own script automatically..

      i hope i made myself clear :)

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        It is clear. I just asked to avoid confusion about this email server and reading emails from it.

        Ronald

        Comment

        • TheServant
          Recognized Expert Top Contributor
          • Feb 2008
          • 1168

          #5
          Originally posted by realin
          Guys none of the two options are seem to be feasible at this stage, can there be some other way to do that.. I just want a listener who can listen to my incoming emails and perform an action in return of it ..
          Why are these not feasible? How about using Sceduled Tasks on your computer? This requires that you are always connected, but other than that I do not know any other way. Explain why you can't use cronjobs though.

          Comment

          • itang
            New Member
            • Apr 2008
            • 1

            #6
            If you have a specific email address that is used for this, then how about piping incoming mail for that address to a php script that can parse through the content?

            That way you don't have to manually check for mail or set a cron, but can have the emails processed whenever they arrive.

            Comment

            • realin
              Contributor
              • Feb 2007
              • 254

              #7
              Originally posted by itang
              If you have a specific email address that is used for this, then how about piping incoming mail for that address to a php script that can parse through the content?

              That way you don't have to manually check for mail or set a cron, but can have the emails processed whenever they arrive.

              You thanks itang,

              this is what i thought.. wherever the page loads, i shall call the script which fills in with the new mails which just popped into the mailbox..

              bytes.com rox ;)

              Comment

              Working...