PHP Read Pop3 Mail Account
I'm after a quick and easy way to read the content of a pop3 mailbox.
I don't need anything fancy, just a way to list the date/sender/title, and then when selected, display the content of the message. I'd also like the mail to remain on the server to be downloaded properly into a mail client later.
It doesnt even need to be capable of sending email at the moment - just reading it. It's so that a friend of mine can check her email online to find out her exam result next week while on holiday.
View Complete Forum Thread with Replies
Related Forum Messages:
Register Pop3 Account
I'm currently working on a website offering free email. However I came across a problem of allowing users to self-register, I am only able to create accounts through cpanel. I thought of using PHP to log into cpanel and create the account by use of form posting. However my knowledge in PHP is very limited.
View Replies !
Deleting Mails In POP3 Account
I am getting lot of mails after submiting my site to some FFA link site. I am using Yahoo! mail ( User name : w3boby Password: bobee ) to receive all these Junk mails. They allow POP3 access. I want to delete all these mails in a single go. My PHP doesn't have IMAP support. Can i use socket to connect to POP3 mail box and Delete all mails inside.
View Replies !
Move Mails From One Into Another POP3-Account
I'm going to write a anti-spam-program based on a Whitelist. "If the mail sender is found in the database, my program should move the mail into another mailbox". The mailserver fetched the mails from the clean pop3-account. The problem is a problem because the function imap_move() can only move mails from one folder in the mailbox into another folder.
View Replies !
Read Email On Pop3 Without Imap Ext
we need to check email on email address as a webmail but more simple. We need only to check if subject is "Remove" and if yes make action with sender address. The problem is that in server where hosted site IMAP is not active.
View Replies !
Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.
View Replies !
Pop3 Mail
How does one specify which smtp server, (POP3), php should use when sending a mail using the PHP Code: mail() function.
View Replies !
POP3 Mail Access
I am trying to code a script that connect to the pop3 server connect it and get the no of mail counts. For this i try imap_open function but server when i run the script i got undefine function error. Next I try searching this forum find a code for the socket connection but that too give error that gethostaddress fails error for the php complier. I need to connect through the domain name and not through IP address. My application is actual let the user now the count of mails in his pop3 accounts like gmail account has x mails your personal domain has y mails.
View Replies !
POP3 Mail Boxes
PHP script that will connect and read mail from a POP3 box. I need to read the POP3 and populate a database with the senders email, receivers email, date sent, date received, subject, and message. I also want to leave the mail on the server, and flag them somehow so next time the script runs it does not extract the same message twice.
View Replies !
Connect To Pop3 Mail Server
I have a piece of code that connects to a mail server running on the same machine. It all works fine but it just takes an age to connect to the mail server, like 30 seconds or so. Looking at the log for the mail server, I noticed the following lines at the beginning of each request: [Date / Time] CAPA [Date / Time] -ERR Unknown Command [Date / Time] AUTH [Date / Time] -ERR Unknown Command Could this be the reason that it takes so long to connect to the mail server? And if so is it possible to suppress certain commands sent to the server if they are not required? The PHP code I use to connect is simply: $mbox = imap_open ("{mailserver:110/pop3}INBOX", "username", "password"); And then imap_close($mbox); to clean up.
View Replies !
Incomming Pop3 Is Mail.mydomain.com
I have webmail on my server and it says my incomming Pop3 is mail.mydomain.com i tried to do <?php $port = "{mail.mydomain.org:110}"; $user = "admin@mydomain.org"; $password = "*****"; // To connect to an IMAP server running on port 143 on the local machine, // do the following: $mbox = imap_open($port, $user,$password); ?> and i get a stream not found error.
View Replies !
Use Fsockopen To Connect To Pop3 Mail Server
I am writing a application which use fsockopen to connect to pop3 mail server and check mails. It works fine for me. But, Now i am having problem with checking same server. I mean when i try to connect to example.com from a script running at http://www.example.com/myscript.php it doesn't connect to server gives PHP Code:
View Replies !
Programmatically Create POP3 / IMAP Mail Accounts Using PHP On Linux?
I want to get some help for programmatically create POP3 / IMAP mail accounts using PHP on Linux? , actualy im trying to develp a real email system like hotmail, this might be easy for you experts but getting difficult for me, im easily able to send Email to other domains but having problem to understand email Inbox and automated email account creation at my domain ( at sign up time ).
View Replies !
Users Account Information And E-mail
If I have users and registration page has e-mail for users. The same is account page if user would like to change his e-mail address. In the registration page: Is correct that user can create new username and the same e-mail address or I should not allow this? In the account page: Username is unique in db. If user would like to change his e-mail, can be his e-mail address as one e-mail that is already in db for another user?
View Replies !
User's Register, And Send Mail With The Account Info...
i desire send mail to the new user than he register in my web. i have 2 codes. 1 is registra.php that one is in charge to verify fields and to register the new user, and other that sends a mail to the user, but this I complete not where to place it within registrar.php. Code:
View Replies !
CPanel Mail Creator Class - Email Account Creation
Here is the class I have written for creating cpanel email account creation with loggin in to cPanel. Using this script, you can create new email addresses just by filling the form. So you can provide free email accounts for your visitors. They will be able to create their own email account without your intervention. Note: You must own cPanel with your website. cPanel username & password will necessary for using this script. The main class file is attached herewith. You can use it by downloading...
View Replies !
Confirmation Of Mail Read
i'm having a problem of mail confirmation issues. If i send some Mime mail from my PHP script using mail () ; function, can i have a automated machanism with which i'll come to know whether the user has read my email. I don't want to make him click anyway in the email , it will just send me the auto-responce when he reads the mail. (i'm assuming, my client has html complient email)
View Replies !
Mail Read Receipt Possible With Php
Is there a way to send an email and notification of when it was read. And if its possible to input the read receipt into mysql? Right now I created a script that will generate a blank 1 pixel image and I have it in the email like <img src="mysite.com/image.php?id=xxxxx"> so the script will put in mysql the call for the image (when it was opened) and output a white pixel which isnt noticeable in the email. It's been working but I just wanted to have an alternative incase someone blocks images in emails like gmail does.
View Replies !
Mail() :: Request For Read Receipt
I'm using the mail() function for following up some customers at my online-service. Is it possable, or is there a function, for making a "request for read receipt" such as in outlook? I want to se if the message is delivered, deleted etc.
View Replies !
Email With Attachment - Annot Be Accessed. The File May Be Read-only, Or You May Be Trying To Access A Read-only Location.
It is a basic email with an attachment. The email and attachment are getting sent and received ok. When the recipient tries to open the attachment, the right application opens (eg. Excel) but then throws up an error. I am using base64 encoding. For example: .xls file with base64 encoding: 'testing.xls' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. .pdf file with base64 encoding: There was an error opening this document. The file is damaged and could not be repaired. so the file isn't being decoded right. I have tested on Yahoo and Outlook. PHP Code:
View Replies !
Fgetcsv Returns False In Dynamic Read Vs. Hard-coded Read ??
I am working with directories in PHP for the first time. I have code that I've changed multiple times to try different things. I would think this is pretty standard fare so I'm not sure why I can't seem to get it right. What I would like to see happen: The code opens the directory and loops through the files, opening them and processing them. What is happening: If I hard code the name of one particular file (it is always the same file) in my test setting, fgetcsv does not return false and the code runs fine. The file is parsed and all is well. However, if I let the code open a directory and then loop through the files, this one particular txt file does not work. For debug purposes, I have it displaying each file name and it can display the name, it just won't process it. I've even tried setting a for loop and hard coding each file name (since right now I know the names - I won't in the future) and the file is processed. It is only when it is set to my $file var dynamically rather than being hard coded. Here is the code: $handle_dir = opendir('../directory_name'); /* loop over the directory. */ $countfile=0; while (false !== ($file = readdir($handle_dir))) { $countfile++; $filevalues = ""; //Skip the first two files that where found because they are "." and ".." if ($countfile 2) { //echo $file; //begin loop through each file name $handle = fopen($file, "r"); echo "Filename is: $file<BR>";//at this point the code can print the file name if (false == ($filevalues = fgetcsv($handle,6021,','))){ echo 'problems<br>'//for one particular file, this always displays }
View Replies !
Read (and ONLY Read) A Multi-sheets Excel File With PHP.
I want to read (and ONLY read) a multi-sheets Excel file with PHP. I found so many scripts on the net that I finally don't know what to choose so... could experimented users help me to directly find the one that I need ? Here are the two obvious things the script must match : - free - can read multi-sheets Excel files
View Replies !
PHP And POP3
Can anyone point me to a tutorial on using PHP to retrieve email from a POP3 account? I need to take mail messages and parse their content into a mydql DB.
View Replies !
Another Question Regarding Pop3
What is the procedure for running a php script automatically as soon as our mail server receives a new email. please help in setting up the flags of emails through pop3 and idea about formatting and displaying the recevied emails.
View Replies !
POP3 Access
I have a script that will access a smtp server and send mail via it, but I'm looking for a code that will let me pop authenticate first so that it will let me send.
View Replies !
Imap - Pop3
I'm writing a script to read view and store my emails. Something like hotmail. Would I need to use IMAP or POP3?
View Replies !
Pop3 Over Sockets
on a php page I want to display the content of a POP3 mailbox and to show the following informations: current number, content-length, sender, subject // open the socket $socketPOP = fsockopen($pop, 110); fgets($socketPOP); fputs($socketPOP, "USER myName"); fgets($socketPOP); fputs($socketPOP, "PASS myPassword"); fgets($socketPOP); // load list fputs($socketPOP, "LIST"); Now I read the lines with $zeile = fgets($socketPOP); and get from it the current numbers and the content lengths. Then I send for every mail: fputs($socketPOP, "RETR $currentNumber"); and parse the returnd lines for the strings "From:" and "Subject:". My problem is, that the whole mail is sended and I have to read ALL data from the socket, before I can get the data from the next mail. If I have lots of large mails, I create with this code very much traffic. How can I avoid this unnecessary traffic?
View Replies !
POP3 Class
Can anyone reccomend a good class for retrieving mail messages from pop3 server? I need basic funcionality (i've checked pop3 class from phpclasses.org) which is to download message body (both plain text and html messages) and display it correctly in browser. I'm not developing a webmail app, I just need to display mails properly.
View Replies !
Pop3 Instead Of IMAP For This?
We want to make a page called 'mail.php' which will check 5 mailboxes. Our mail server uses POP3, not IMAP and we want this page to return a syntax like this: mailbox@domain.com: 15 messages, 2 new mailbox2@domain.com: 23 messages, 3 new The IMAP script we had was: $mbox = imap_open("{mail.domain.com}", "mailbox1@domain.com", "password", OP_HALFOPEN) or die("can't connect: " . imap_last_error()); $status = imap_status($mbox, "{mail.domain.com}INBOX", SA_ALL); if ($status) { echo "Messages: " . $status->messages . "<br />"; echo "Recent: " . $status->recent . "<br />"; echo "Unseen: " . $status->unseen . "<br />"; echo "UIDnext: " . $status->uidnext . "<br />"; echo "UIDvalidity:" . $status->uidvalidity . "<br />"; } else { echo "imap_status failed: " . imap_last_error() . ""; } imap_close($mbox); However, our mail server isn't IMAP. Is it possible for PHP to do this with POP3 instead, what would I need to use?
View Replies !
How To Read Up To A Point And Assign The Read Value To An Array.
Open a text file which will look something like this: QuoteLink 1 http://www.blahblah.com/1651561 Link 2 http://www.etc.com/34324 Link 3 http://www.sdfkjsdf.com/12343423 basically its a "Link n" text followed by a URL text in the format of "http://www.page.com/random numbers" What I would like the php script to do is to read "Link n" text and output it with the a http link to the URL which follows it. That is it should look something like this in the output: Link 1 Link 2 Link 3 I have learned how to read a text file with php so far but I have no idea how to make it read up to a point and assign the read value to an array.
View Replies !
Pop3 Function Explanation
i have found a function that does exactly what i want to do but i dont know how it works and i really need to to get another program to work. the function retrieves a message from a pop3 server which has already been connected to: function get ($msgNum) { //Retrieve the specified msg number. Returns an array //where each line of the msg is an array element. if(!isset($this->FP)) { $this->ERROR = "POP3 get: No connection to server"; return false; } $this->update_timer(); $fp = $this->FP; $buffer = $this->BUFFER; $cmd = "RETR $msgNum"; $reply = $this->send_cmd($cmd); if(!$this->is_ok($reply)) { $this->ERROR = "POP3 get: Error [$reply]"; return false; } $count = 0; $MsgArray = array(); $line = fgets($fp,$buffer); while ( !ereg("^. ",$line)) { $MsgArray[$count] = $line; $count++; $line = fgets($fp,$buffer); if(empty($line)){ break; } } return $MsgArray; }
View Replies !
PHP POP3 Password Changer. Possible?
I have built a PHP webmail app and I was wondering if it is possible or not to create a script to allow my POP3 users to change their password if they want to. Also, is it possible to create and delete POP3 accounts with PHP? Examples would be great or links to examples.
View Replies !
How To Know When A New Message Arrives Without POP3
I am designing a PHP-MySQL web based email and I have a question. How can I get the messages sent to a specific user. I mean how do I know if there is a new message in the mail server. And if I am doing the web-based email without POP3, how can I know when a new message arrives.
View Replies !
Access To A POP3 Mailbox
I am in preliminary design of a contact management program. The user would like to use his current mail server (POP3 - remote). I have done some reading on the IMAP functions but am unclear if the following is possible: Using the IMAP functions can I write a PHP script to: scan the subject lines of all mail in the mailbox ? pop just certain messages from the inbox ? delete those messages from the inbox ? all without disturbing the other messages in his inbox that are downloaded to his usual email client (Thunderbird).
View Replies !
POP3, Access & Handle With PHP
I wrote some classes for easy handling of POP3-mailboxes with PHP. Because I think others will benefit from them also, I'd like to notify their exist here. I know they're not PEAR, but I think they work rather well - no support for APOP- or MD5-authorisation though. http://www.disconova.com/open_sourc...html#example002 If you find any bugs, please let me know. Also I'd be interested in hearing what people like these classes.
View Replies !
Pop3 - Imap_open Sometimes Works
I have been using the same script for almost a year to check pop3 mails for user accounts on my server. It hasnt worked well since I first wrote it. Sometimes it connects and gets the mails fine but a lot of times it just hangs. It doesnt timeout or anything..it just hangs and the page keeps trying to load. Actually, if I want to use my site anymore, I have to restart the browser. here is the code i use to connect: $mbox_open = "{" . $server . ":110/pop3}INBOX"; $mbox = imap_open($mbox_open, $user, $password); ...where $server = mail.mysite.com My server is running php4. Is there a better/faster way to connect? If nothing else is there a way I can set it to timeout at least and retry?
View Replies !
Accesing Gmail From POP3
I'm trying to make a mail client in PHP, i can send mails using smtp, throw my gmail account, and i can download all my mails from gmail using pop3. But the problem is that i dont know how to download the mails in the spam folder or how to know if a mail is unread or not. For connect to pop.gmail.com im using the class NET_POP3, from PEAR. Somebody know how can i solve this problem???
View Replies !
Imap_open - POP3 Problem
I am setting up an autoresponder system that checks a certain email account. I have checked my account settings and logged in with telnet to test. However I get these errormessages when testing the system. Anyone have a clue? Code:
View Replies !
Access Pop3 Attachments
If there is an easier way then please tell me. I've tried using the imap_open function to access the mailbox specifying port 110 instead of 143, but no dice. So I've been relegated to using fsockopen and sending telnet commands. I can use all the basic commands and retrieve individual messages, but the caveat is that I need to be able to open WAV files that are attached to these emails. I'm not having any luck with this. If I could just somehow store the wav file somewhere on the server in a tmp folder or something that would work great. For full disclosure, yes I am connecting to a remote pop3 server, if it was on the same host i imagine that would make this somewhat easier.
View Replies !
IMAP/POP3 And Message_id/UID
I have the following script that connects to a POP3 account and gets the header of the first message on the server, however when I try to get the body I get an error complaining that the message number is invalid, I am using the messages UID rather than the message number, but I've got the UID flag in there so what’s wrong? Code:
View Replies !
POP3 Email Access
I'm looking for a PHP script that I can install on my server that will allow me to access my google email account via POP3. Had a quick search and the only possible candidate that I could find was "project zen" which i'm finding quite hard to configure. Has anyone got any alternate suggestions?
View Replies !
Imap_open Works With Pop3 But Not With Imap
I have used the following code and it works fine: $inbox = imap_open("{".$host."/pop3:110}",$user,$pass); But the problem is that, with pop3 many imap functions (i.e imap_createmailbox, imap_getmailboxes etc.) does not work. So I wanted to connect with imap with the following code: $inbox = imap_open("{".$host.":143}",$user,$pass); but getting the same error Coudn't open stream So whats the solution? I have browsed the whole site and found many solutions (almost same thing) but none of them worked. How can to make mail folders, rename them, delete them etc. with php??
View Replies !
|