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 Complete Forum Thread with Replies
Related Forum Messages:
Create E-mail Accounts
I need a script which can create email addresses on that server. If somebody register to a site than this script will create an email address for this user.
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 !
Auto Generate POP3 Accounts Using PHP & 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 !
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 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 !
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 !
Php Script - Create Mail User - Linux/Postfix
I have a personel server (I learning) with Linux I use apache, Php, Postfix. I want create with Php script a mail user by web form (yahoo like) I don't really know Php. May be someone can give me a example. I want permit at my friends to create their own email account.
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 !
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 !
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 !
Create Email Accounts
Normally (manually) I create email accounts using cpanel. I created a way to add email accounts with a modified script based of cpanelmail. It uses fsocketopen and my cpanel login to run the cpanel script. It worked great. I didn't like having my cpanel login on a page but it worked great. Now all of a sudden it stopped working and I didn't change anything. It doesn't display any errors. I'm thinking my hoster switch something. I'm waiting to hear. But until then I need to figure out how to create email accounts. I've used imap_createmailbox but it just creates a file and my webmail won't read it. I've used mkdir and imap_createmailbox but my webmail won't read it either. I've search from scripts but have not found anything. I thinking I'm looking for the wrong thing.
View Replies !
Communicating With WHM To Create Accounts
i 'm wondering if any of you php coders have had any experience with coding a script that would communicate with WHM, which would create an account in a signup process. It would literally be a command which would create an account from certain variables inputted (e.g. account name, domain name, password, package etc), this is all I really want. I've seen the remote access key setup in WHM itself, so I assume it can be done - but how hard/easy is it to do? Have you got any links to a site with a guide on how to set up such as script by any chance, or could you maybe post some sample code.
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 !
Php And Mail Accounts
Is it possible to create a mail account using php on a redhat linux system with imap. I would like to do this as I want to offer a free @domain.com email address when users register with my site.
View Replies !
Create User Accounts For A Forum Type Site?
I've been doing this my way for a few years now, but I was wondering if there is a right or wrong way to do this. I obviously want the user accounts to be as hackproof as possible, but there won't anything more than contact information in these accounts (much like this forum). Code:
View Replies !
Creating E-mail Accounts On The Fly
I am interested in subscribing to Dreamhost's Crazy plan. I want to offer a free e-mail service for students, and I want them to be able to create e-mail accounts on the fly using PHP. Is there an API that I could use to do so? I don't want to have to create these accounts manually, and I prefer them to sign up, like they would do on Hotmail...Is there a way to do it? They say it is possible to create accounts only from their proprietary control panel....
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 !
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 !
Imap - Set Up The Web Mail
if i use the php4.0, it is support the imap function ? i want to set up the web mail, it is just install the php apache mysql mail server, still need others...
View Replies !
New Mail Function In IMAP
I'm trying to create a feature where a member logs into my site and then he/she can see the number of new emails in their inbox. I'm using the IMAP functions in PHP for a POP inbox since it is suggested in the PHP manual and I can't find pop functions there.
View Replies !
Check IMAP Mail?
I was wondering if when a user loads a webpage is it possible for php to determine whether or not someone has any email (assuming its their email) in the IMAP mailbox? Like when the page loaded it would say on it somewhere "You have mail" with a link to check it if you do and "No new mail" if you don't.
View Replies !
IMAP With Mail Fowarding
I am writing an application for a site in which I am required to connect to an imap mailbox and then forward all mails therein to external email boxes, before deleting the contents of that mail box. Currently I see no possible way to do this.
View Replies !
How To Setup IMAP Mail Server?
I have run rpm -Uvh --force imap-devel-4.7-6k.i586.rpm and rpm -Uvh --force imap-4.7-6k.i586.rpm is this means that I have setup IMAP mail server? if so this server type is "Cyrus" or "UWash"?
View Replies !
Imap Copy Mail To Other Mailaccount
This might be at dum question. But how do I copy specific mails from one mailaccount to another or from one mailfolder (INBOX) to f.ex. (SUSPICOUS)? I have tried the Imap_mail_move, but without any result.
View Replies !
Imap - Mine And Other Mail Addresses
I'm am working on an wep interface for imap and pop3 servers, where an user can log on to any pop3/imap server and read and send mail. For the send mail function, I am using imap_mail, where it is possible to apply a from address. But I dont know which from address I should apply. Is it possible somehow to find out which email address belongs to the mailbox I have opened with imap_open, and then use that email address as the from address, when I call imap_mail??? Code:
View Replies !
Managing Imap Subfolders With Web Based Mail
I am attempting to write my own webmail client with php to interact with an imap server. I have looked at other systems to get an idea of how to implement folder management without success. The php imap functions don't seem to deal with this at all. There are functions to list mailboxes but not subfolders. Specifically I need to: Display a list of subfolders Display the messages in each subfolder Delete and move messages form subfolders Create Subfolders Delete subfolders From the other webmail clients I've seen only Squirrelmail seems to deal with folder management and for the project I'm involved in I need to create my own client.
View Replies !
Create A File On Linux
I use this to create and write a file: PHP Code: $file= fopen("city.txt" , "w"); fwrite($file, $content); //fwrite -- Binary-safe file write fclose($file);
View Replies !
Mail() Under Linux
why would this script work fine on my windows box, but not my linux box? both sit on same router. <?PHP ini_set ("SMTP", "smtp.comcast.net"); ini_set ("smtp_port", "25"); mail("xxx@gmail.com", "ha ha test", "this is my email test", 'From: me@here.com'); ?> linux box = debian. PING smtp.comcast.net (63.240.77.77) 56(84) bytes of data. 64 bytes from smtp.comcast.net (63.240.77.77): icmp_seq=1 ttl=48 time=34.1 ms 64 bytes from smtp.comcast.net (63.240.77.77): icmp_seq=2 ttl=48 time=36.7 ms telnet smtp.comcast.net 25 Trying 206.18.177.17... Connected to almailhost.ops.asp.att.net. Escape character is '^]'. 220 comcast.net - Maillennium ESMTP/MULTIBOX alnrmhc13 #31
View Replies !
Php.ini Mail Config On Linux
I have a problem sending emails, they doesn´t got sent at all. here is my php.ini: [mail function] ; For Win32 only. ;SMTP = 10.0.0.150 ; For Win32 only. ;sendmail_from = me@localhost.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail.postfix -t -i The mail server that the linux box is running is Postfix. I´ve tried with the central server of the office, that has an SMTP server (10.0.0.150), but without no luck. the strange thing is that mail works if the webserver is a Win2k machine, relaying the email to the ip listed above. am I restricted to sendmail or postfix on linux or may I use an external SMTP server? what could be wrong? I´ll post the mail function, but as I´ve said it works as expected when using a win2k server: PHP Code:
View Replies !
Mail :: Suse Linux 9.3
I've been trying to send email with php mail function in suse linux 9.3 professional from Localhost but I'm not receiving the mail and I'm not getting any error as well.
View Replies !
Mail() On Linux To Use Other Smtp Server
I have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use. have now migrated this site to a redhat 9 server, but i still want the emails to be sent via the smtp server i stated earlier. this may infact be a sendmail question, im not sure, (perhaps changing sendmail_path in php.ini) but has anyone managed to send email via mail() in php, on a linux box, that uses an external smtp server?
View Replies !
Mail Headers For Linux Hosting
Hi, my pages are hosted on a Linux server and I use following headers to send emails with php. $headers = ""; $headers .= "MIME-Version: 1.0"; $headers .= "Return-Path: <email@mydomain.com>"; $headers .= "Content-Type: text/html; charset=utf-8"; $headers .= "Content-Transfer-Encoding: 7bit"; $headers .= "X-Mailer: PHP/" . phpversion() . ""; $headers .= "X-Priority: 3"; $headers .= "X-MSMail-Priority: Normal"; $headers .= "From: My Domain <email@mydomain.com>"; $headers .= "To: $name $surname <$email> "; I read somewhere that is for Windows servers and on Linux servers using a new line feed is enough. Is that right?
View Replies !
Log Path Programmatically
I'd like to know, from within a php script, what is the path of the errog_log that would be used by PHP. This will work but only if "error_log" is set in php.ini: $path = ini_get('error_log') ; It doesn't work if "error_log" is commented. Is there a way to always know the file that would be used. I want to do this because I need to display the errors on a web page. So I plan to load the content of the error_log and display it.
View Replies !
|