Jump to content

Search the Community

Showing results for tags 'imap'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 6 results

  1. I'm hoping you can clear up something for me. I was trying to find a way for my users to send an email to a unique email address and then use PHP to collect the mail and save the message into a database. I know I'm using PHPs IMAP functions to collect the mail but I was wondering if this would be a safe way to create a unique email address for every user, there could be potentially hundreds or thousands of accounts... Setup a 'catch all' to forward all emails to single mailbox - lets say mailbox@example.com. Give users a unqiue email for each user e.g. mb1234@example.com (not a real email address) Use PHP imap functions to connect to mailbox@example.com So far we have EVERY email sent to any email address at @example.com We check the 'to' header to see which mailbox the email was sent We check the 'from' header to see if the sending user is authorised to send mail to this mail account Store the message in the database I know the headers of the email can be spoofed, especially the 'from' header, which is why I will encourage my users to not share their unique email address with anyone. Other than that though, are they any potential draw backs to this method, or security risks or anything I should take into consideration? If so are there any better methods I should use? Hope I've provided enough information, but please let me know if I haven't been clear Thanks in advance
  2. when performing a make on php I get the following. ive recompiled IMAP with EXTRAFLAGS=-fPIC but still get the following error /usr/bin/ld: /usr/local/imap-2007f/c-client/libc-client.a(osdep.o): relocation R_X86_64_32 against `server_input_wait' can not be used when making a shared object; recompile with -fPIC /usr/local/imap-2007f/c-client/libc-client.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [libphp5.la] Error 1 below is the code I used to configure PHP ./configure --with-apxs2=/usr/sbin/apxs --with-mysql --enable-mbstring --with-ldap --with-pdo-mysql --with-zlib --with-openssl --prefix=/usr/local/php5 --with-imap=/usr/local/imap-2007f --enable-pic --with-imap-ssl=/usr/local/imap-2007f --with-libdir=lib64 any help would be great. I've spent the past 5 hours searching the interwebs and used the following guide to help me http://forum.directadmin.com/showthread.php?t=41879
  3. Dear All, I am trying to put together a php application, which connects to Gmail IMAP server and downloads a user's inbox folders and mails. The problem I am currently facing (and apparently can't resolve) is, when I am downloading the gmail folders with imap_list function, I am getting localized labels / folder names. Is there any way to always get the native English names? I know that Google has an IMAP extension, namely XLIST, which addresses this issue, but I haven't found an example of using this extension with php. I've found examples of using XLIST with frameworks like Zend, but since I am not using them, those examples did not help me. Is there a way of using Google's and Apple's IMAP extension in php (without any framework)? Or, I have to use a php extension? Do you know if PEAR's IMAP library can handles the Google IMAP extension? Any help is highly appreciated! Regards, Antal
  4. Hi, I'm trying to access my Gmail account by a socket connection (secure imap is closed by my provider). Currently I'm at this coding state (not very far...): //////////////////////////////////////////// // Open a socket if (!($fp = fsockopen('ssl://imap.gmail.com', 993, $errno, $errstr, 15))) die("Could not connect to host"); // Set timout to 1 second if (!stream_set_timeout($fp, 1)) die("Could not set timeout"); // Fetch first line of response and echo it echo fgets($fp); // Send data to server echo "Writing data..."; fwrite($fp, "C01 CAPABILITY\r\n"); echo " Done\r\n"; // Keep fetching lines until response code is correct while ($line = fgets($fp)) { echo $line; $line = preg_split('/\s+/', $line, 0, PREG_SPLIT_NO_EMPTY); $code = $line[0]; if (strtoupper($code) == 'C01') { break; } } echo "I've finished!"; fclose($fp); //////////////////////////////////////////// Output er følgende: * OK Gimap ready for requests from g8if1416270lbr.32 Writing data... Done * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 C01 OK Thats all she wrote! g8if1416270lbr.32 I've finished! But how do I get IMAP working, hope somebody has some examples / ideas / Morten
  5. Hi guys, I am using <?php $check = imap_check($imap); var_dump($check); ? Now this should return RECENT = 1 or however many recent emails I have - however it ALWAYS returns 0. Any ideas why? Can't find a reason for it.
  6. hackalive


    Hi guys, I am using PHP's IMAP functions to create a basic web-mail client to go with a dashboard I have. I am using imap_fetch_overview which it listing the emails nice and quick - but not in order of date recieved (newest first). How can I rectify this? Simply adding in an imap_sort before imap_fetch_overview seems to break the code and stop it from running the IMAP quiries. Any help is much appreciated - cheers.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.