View Full Version : PHP and POP3 Mailbox
Is there any way to manage a POP3 Mailbox with checking, reading andsending mails with PHP?
Someone knows where I can Documantation about this?
Thx a lot!
07-05-2002, 08:45 AM
I know the documentation of the php manual is not always clear but it has everything you need.
07-05-2002, 09:53 AM
i think you need a special library for using pop3. be aware that recieving mail is pop3 and sending it is sendmail
to send mail just use this function(*nix systems only i think
mail("firstname.lastname@example.org", "subject", "the message\n this is sendmail", "from: email@example.com")
notice the "from" field at the end, this is one of the additional headers, these can be used to describe differnt parts of the mailing process like the mailer, the mailer version nand all diferntt types of things. and it can be used to change to from field. this is why some hosts (and nearly all the free ones) dont have smtp or pop3 support with php. hope that helps
I know the mail-function, But I want to know how to create a simple web-mailer-skript.
(with receiving and sending mails)
I think you need a special library, too. But I am not sure.
Thx for the links. There you need an additional library, too.
07-05-2002, 09:02 PM
Yes, you have to have the IMAP library to use any of the IMAP functions. Um, you could however use fsockopen to establish a connection with a pop3 server and send commands to it that way. I wrote a small script a while ago that did this, i was not allowed to enable IMAP functions on our webserver.
try this tutorial
Building a PHP based mail client (http://www.devshed.com/Server_Side/PHP/PHPMail)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.