SEO Software
Closed Thread
Results 1 to 7 of 7

Thread: receiving email with php

  1. #1

    Default receiving email with php

    Is there any way for me to receive email using a php script then have it save the email into a mysql database?


  2. Micro Niche Builder

  3. #2

    Default

    For a way to access the POP server see

    http://wiki.cc/php/POP3

    This uses a package from http://pear.php.net/package/Net_POP3

    But I think you will have to do plenty of coding and also have to check if you are allowed to install external packages on your webhost.

  4. #3
    Master Apprentice imported_megamoose is on a distinguished road
    Join Date
    Sep 2005
    Location
    Megamoose Castle
    Posts
    2,133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Have a read of this [CLICK] article. It should help you with the actual sending of the email.

    The basic PHP code for it is:

    Code:
    mail ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" );
    Mark

  5. #4

    Default

    I am able to send email with php with no problem.

    I just need to be able receive email using php and store it in a mysql database.

    Also I have POP server.

  6. #5

    Default

    You should do a phpinfo() on your host to see if the pop3 package has been installed, if it has been installed you can follow the instructions on the wiki site, alternativly if c-client library has installed you can use the imap functions detailed here
    http://php.net/imap

  7. #6

    Default

    how do you do php info?

  8. #7

    Default

    create a random .php page and in it put
    PHP Code:
    <?php 
    phpinfo
    (); 
    ?>

Closed Thread

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