Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Pop3 Mail


How does one specify which smtp server, (POP3), php should use when sending a mail using the PHP Code:

mail()

function.




View Complete Forum Thread with Replies

Related Forum Messages:
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 E-Mail Script? Is There One?
I was wondering if there was a script written in PHP were you can check your mail through POP3. All I need is to simple send and receive mail. What scripts do you suggest?

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 !
Pop3 Mail Fetch With PHP
i need to fetch mails using POP3 in php. i done with imap in php(imap_open). but i am not aware of POP3 in php.

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 !
Get E-mails From A Pop3/mail Server
i want to make a webmail script but i don't know how to get e-mails from a pop3/mail server (with out deleting them).

View Replies !
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 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 !
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 !
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 !
Reading POP3 Mails
I want to read POP3 mails through PHP Script. Is it possible? If it is possible.

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 !
EMail Deletion In POP3
Looking for a simple PHP code that will open a mailbox in pop3 and then delete all the mail that's in the said box then exit?

View Replies !
Mailbox That Uses Pop3 And Smtp?
does anyone know of a PHP mailbox that uses pop3 and smtp? I have Gmail, and I want to install a mailbox to my own server that uses gmails smtp and pop3.

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 !
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 !
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 !
Imap/pop3 Connection Failure
After searching thru old posts, php.net and other places, I cannot find the problem in this. I am trying use the web-based mail client from the devshed's article-http://www.devshed.com/Server_Side/...ail1/page1.html .
The problem is the connection is not working. My server does not allow IMAP streams so the POP3 version used in this tutorial is a step in the right direction.

Here's the problem line: (or the line that I am having problems w/ anyway)

View Replies !
Deleting Email From Pop3 Account
I need a simple script that would, when called, delete all the email from a certain pop3 account.

View Replies !
Log Into A POP3 Mailbox And Delete The Messages.
I am trying to make a simple web tool that will log into a POP3 mailbox and
delete the messages all at once. I have came up with this and if the Login
information is correct it does delete the mail,but if the login info is
incorrect you do not know until after you try to login to the mailbox again
via telnet or anything like that and notice that the mail is still there.
Does anyone have any idea how I could make this script so it will tell us
that the information is incorrect? Any help would be appreciated.

<?
$host = $_POST['address'];
$user = $_POST['username'];
$pass = $_POST['password'];

################################################## #####################
# End Configuration #
################################################## #####################
#Until I rewrite my scripts, this will suffice for bg-compatibility;
if(phpversion() >= "4.2.0"){
extract($_POST);
extract($_SERVER);
extract($_ENV);
}
#Format output for console or for web?
$nl = ((isset($REMOTE_ADDR)) ? "<br>" : "");

if(!$sock=fsockopen($host, 110, $err, $errno, 10))
die("Couldn't connect to the POP server$nl");

fputs($sock, "USER $user");
$buf = fgets($sock, 1024);
if($buf[0] != '+')
die("POP server didn't like USER $user$nl");
fputs($sock, "PASS $pass
");
$buf = fgets($sock, 1024);
if($buf[0] != '+')
die("POP server didn't like PASS$nl");

fputs($sock, "STAT");
$buf = fgets($sock, 1024);
fputs($sock, "STAT");
$buf2 = fgets($sock, 1024);
list($stat, $num, $size) = split(' ', $buf2, 3);
echo "Mailbox has $num messages$nl";

for($i=1; $i<=$num; $i++){
$command = "DELE $i";
echo "Deleting message $i with DELE $i$nl";
fputs($sock, $command);
$buf = fgets($sock, 1024);
if($buf[0] != '+')
die("POP server didn't like DELE $i: ($buf)$nl");
}
fputs($sock, "QUIT");
$buf = fgets($sock, 1024);
fclose($sock);
?>

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 !
Create Web Based Email Using POP3
Anyone know how to create web based email using POP3 with PHP? Would you use FOPEN() and some how parse it???

View Replies !
Creating POP3 Email Accounts
I have been looking for some scripts tutorials or whatever to create a small web based email service for any member that signs up on my website. I know how to create web interfaces and connect to accounts that I have already setup on my server. But what I am looking for is some scripts that would allow me to create an interface that anyone could sign up and create a new account from the web.

One other option I could look at is to be able to create a system that would pick up and all my catch-all emails and then maybe place then into a database under a user account. Then users could access there emails without actually having a POP3 account on my server. I have a good idea of how to create this, but would prefer to be ale to create a new POP3 account on my server directly from the web.

View Replies !
Reading Email Without The Pop3 Extension?
Is there any way to do this without the pop3 extension?

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 !
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 !
PHP4 IMAP, POP3 And SMTP Protocols
We are building a new web based e-mail client
"Fiezel" that will support IMAP, POP3 and SMTP protocols. Will be written in
php4.
I am trying to collect all the infomation on SNMP I can get and any other
protocols like POP3 infomation for desinging and developing for php4.
I have also collected the infomation wish I will try to support:

RFC2821: Simple Mail Transfer Protocol (SMTP)
RFC2822: Standard for ARPA internet text messages
RFC2060/3501: Internet Message Access Protocol (IMAP) Version 4rev1
RFC1939: Post Office Protocol Version 3 (POP3)
RFC2076: Common Internet Message Headers

Does anyone else know of infomation RFC`s, Draft etc.. Maybe also
on software development of this protocol? Any kind of infomation will be
very much usefull.

View Replies !
Building A Web-based Ajax POP3 Client
Once again, DevArticles is back with a new project
that I've seen many people ask for as a way to keep on top of their
email no matter where they are - an Ajax-enabled POP3 client. This
article is the first of a three part series to create a simple app that
can grab the messages from your mail server.

As you may have guessed, in this article I'll
make my contribution to the developing AJAX universe, by creating a
simple web-based POP 3 client, which will utilize "XMLHttpRequest"
objects for retrieving messages from a given mail server. The
application I plan to develop will use a simple front-end for
connecting to the mail host, displaying the messages and navigating
back and forth across them. On the server-side terrain, I'll use PHP
for accessing the mail server, pushing POP3 commands and reading
messages from the inbox, which implies having the possibility of
switching over to your preferred language and using it to create the
application. ...

View Replies !
POP3 Access :: InUse Another Session Is Open
I am writing a PHP Script that is connecting to the POP3 Mail account and check the mail . This works fine for me without any problem until i Start getting this Error

InUse Another Session is open.

I am using a POP3 Class that i get from this forum it self. This POP3 Class uses the socket (fsockopen) to connect to the mail server. Than Send the User and Pass command and return server output as usual. Now My Question is that..

How can I cancel the Other POP3 Connection. through my PHP Script. I want my script to make that session close so that it open new session from within.

View Replies !
Script To Connect To Delete Contents Of A POP3 Mailbox
I have written a PERL script that I can run through bash, that will take in a mail server address, username and a password, login and then delete all of the mail contained within the user's mailbox.

Now I've battled to create a web interface so that my non-linux colleages can use easily wherever they happen to be, but just cannot get to work.

So, I decided it would be easier to use PHP to create the script and use $_POST to grab the address, username and password from a form and then process the connection/deletion.

View Replies !
Auto Generate POP3 Accounts Using PHP &amp; Plesk/Horde
I'm building a site where advertisers can buy leads for widgets. I was running into problems when trying to have my site use php to send the email to advertiser@aol.com.

The best way I have found to make sure that all the leads reach the advertiser is to give them a POP3 account that redirects to their real email address. e.g. the advertiser would have an account 103-joeblow@MyDomain.com that redirects to advertiser@aol.com. That seemed to get me past junk mail filters, and all the other issues I was having, but created a new problem.

Now everytime I sign up an advertiser I have to manually create them a POP3 account, which granted takes very little time, but it isn't exactly immediate access for the advertiser.

So finally my question: Is there a way that I can auto generate POP3 accounts using php for my VPS that is plesk using horde for email?

View Replies !
EMail Headers - Display Emails From User Specified Pop3 Accounts.
I'm creating a small PHP script that will display emails from user specified pop3 accounts. The problem I'm having is when display the body of the email there are all of the usual headers such as content-type etc.

Is there any PHP/Pear command/class that will remove these?

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
ISO-8859-1 - How Can I Translate This Kind Of Message Returned By The PEAR POP3 Module
how can i translate this kind of message returned by the PEAR POP3 module:
=?ISO-8859-1?Q?eBay_-_F=E9licitations=A0!_Achat_?=
=?ISO-8859-1?Q?de_l'objet_:_

For example, in this sentence I should see: "Félicitations" instead of
"F=E9licitations".

Is there a php function to do that?
One thing, sometimes, the message returned is not encoded, sometimes it is
encoded with UTF8 etc etc.



View Replies !
Warning: Mail(): Bad Parameters To Mail() Function, Mail Not Sent. In /
I have a website with a contact form and I tested to see if the form would actually send the submitted info to my email but I get this error...

Warning: mail(): Bad parameters to mail() function, mail not sent. in /home/content/g/o/l/goldenhills/html/email_us.php on line 62

Here's the php code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved