Is there any way for me to receive email using a php script then have it save the email into a mysql database?
Is there any way for me to receive email using a php script then have it save the email into a mysql database?
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.
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:
MarkCode:mail ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" );
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.
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
how do you do php info?
create a random .php page and in it put
PHP Code:<?php
phpinfo();
?>
Bookmarks