Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / PHP emails

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th Sep 2006 20:50
Does anyone know how to get your emails with php? I have a server which has squirel mail installed on and i can receive email through that but i would like to be able to receive email through my own php page.
Thanks,
Alex


Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 28th Sep 2006 20:52
You should be asking these in the Programming Forum, probably.

The PHP online manual has a section for emailing--- did you look there first?

http://www.php.net/manual/en

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th Sep 2006 21:05
It only seems to have about sending mail


Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 28th Sep 2006 21:19
You need to get down and dirty with the POP3 protocol, using PHP in socket mode to connect to, read from, and cleanly exit your mail server.

The POP3 RFC is easy enough to find, and relatively simple to follow. But there are PHP classes to handle it all for you if you prefer. A quick Google will turn up several.

"Bite my shiny metal ass" (Futurama)
"Don't ping my cheese with your bandwidth" (Dilbert)
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th Sep 2006 21:35
I found something called imap but its not installed on my server has anyone got any useful email receiving code snippets?


adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 28th Sep 2006 22:25 Edited at: 28th Sep 2006 22:27
Seriously dude, spend longer than 15 minutes of doing research.

http://uk2.php.net/imap
Quote: "These functions are not limited to the IMAP protocol, despite their name. The underlying c-client library also supports NNTP, POP3 and local mailbox access methods."


Then, further down...

Quote: "This is a working example of pop3 mailbox reading..."


EDIT ---

And to reiterate what Jeku said - post questions like this in the programming forum. You've made 3 PHP threads in the general discussion forums so far!

[center]
But you see, I have the will of the warrior. Therefore, the battle is already over. The winner? Me!
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 28th Sep 2006 22:45
Oops sorry, I read this too fast, thinking you just wanted to know how to send mail

Login to post a reply

Server time is: 2024-11-17 15:59:00
Your offset time is: 2024-11-17 15:59:00