0

I am trying to develop a program for fetching email from the inbox of gmail. Can you help me for doing... If the code can automatically fetch the email, it is very good.. I am preferring php code.....

henrywright
  • 10,070
  • 23
  • 89
  • 150
saif
  • 1
  • 1

2 Answers2

1

Yes saif, use IMAP extension in php to garb email See the link below for php code.

http://davidwalsh.name/gmail-php-imap

Thank you

sathish
  • 6,705
  • 3
  • 30
  • 35
  • can you give that full code for me....That code getting imp_open() cannot do..... how i can correct that error. more than all really thanks for giving this idea.... thanks sir – saif Nov 03 '09 at 10:16
  • Saif, I think it may be Firewall issue, localhost brings some trouble. Try it in live server or change firewall setting. Thank you – sathish Nov 04 '09 at 08:52
  • thanks sir now i corrected that one.. but actually i need to take the link address which are being in the email body. Can you Please help me for doing that . – saif Nov 07 '09 at 05:43
  • only the link address? specified in the mail body – sathish Nov 07 '09 at 06:20
  • Take the subject value from the mail and use preg match to retrieve all the email values – sathish Nov 07 '09 at 06:21
  • i tried foe that but it is not working. i want to get the link contained in the message body .. only that one needed. how we can search for that.. can we think it should be in the form of http://www.orkut.com' .. how we can take that and browse the address in different tab automatically... you said a good idea first.. thanks for helping me..... – saif Nov 07 '09 at 11:29
0

Gmail allows for the use of IMAP, so if you can write an IMAP client, you can connect and grab mail from GMail.

monksy
  • 14,156
  • 17
  • 75
  • 124