PHP check if email exists

Discussion in 'PHP' started by Arcania, Mar 16, 2013.

  1. #1
    I would like a PHP script that logs into a gmail account and then scans whether an unread email with a specified subject exists. If so, it calls an outside script (such a script that would log it) and then deletes the email.

    It would all run on cron. Anyone know where I can start? Or where I can find a script if one already exists?
     
    Arcania, Mar 16, 2013 IP
  2. jason_at_snip

    jason_at_snip Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    This looks like roughly the same question, and it has an answer: http://stackoverflow.com/questions/2485257/how-to-make-a-php-script-that-read-an-email-from-the-server
     
    jason_at_snip, Mar 16, 2013 IP
  3. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #3
    mfscripts, Mar 16, 2013 IP
  4. Nei

    Nei Well-Known Member

    Messages:
    106
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    170
    #4
    Maybe you should start from learning cURL. It'll help you with logging into google panel.
     
    Nei, Mar 16, 2013 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    nico_swd, Mar 16, 2013 IP
  6. D3Tek

    D3Tek Active Member

    Messages:
    164
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    50
    #6
    Try looking at checkdnsrr()
     
    D3Tek, Mar 18, 2013 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7

    Try reading more than just the thread title next time. ;)
     
    nico_swd, Mar 18, 2013 IP
  8. D3Tek

    D3Tek Active Member

    Messages:
    164
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    50
    #8

    Ha, oops. My bad!
     
    D3Tek, Mar 18, 2013 IP