SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2007
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Receive mail using PHP

    I am looking for a code to receive mail using PHP. So please help me.

    I have checked many codes online and didt find nothing works perfect.

  2. #2
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PHP is a web scripting language, not a mail client. You can built a mail client with PHP, or use a mail client on your server to redirect emails to a PHP script, but PHP cannot just receive mail.

  3. #3
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    As storm rider has already pointed out you will need a mailserver to 'collect' your mail. However once you have the mail sitting on a mail server you can use PHP to access that mail, parse it and then do other things with the information.

    Check out PHPs IMAP function in the manual
    http://www.php.net/manual/en/book.imap.php
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •