Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6813057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:31:31+00:00 2026-05-26T20:31:31+00:00

I need a system to log certain e-mail messages so that they can be

  • 0

I need a system to log certain e-mail messages so that they can be displayed online as well. I would like this to be as simple as possible, so wanted to ask if someone know of an existing solution before I start to build this myself. I am also interested an any information that could help me build this tool, if a solution doesn’t already exist.

Ideally I would just like to set up an e-mail address, say for example log-me@mydomain.com, that would be used only for this purpose, so there doesn’t need to be any complex sorting/parsing of WHAT messages to store, it would be safe to assume that any messages received at that e-mail address should be logged. I will perform admin/moderator functions after the messages have been added to the database. I want to be able to write an e-mail, copy the log-me@mydomain.com address in the CC/BCC field, and have the system log the e-mail when it’s received. I also have no problem scheduling the process to run at specific intervals, I use several scripts like this already.

So, thinking about it, if there isn’t a system for this type of thing already, and I need to build it myself, all I really need is a way to get e-mail via pop3 to a mysql database, preferably keeping any html formatting the e-mail may contain, the rest of it I already know how to do.

I did search online for a solution and didn’t have much luck, so any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:31:32+00:00Added an answer on May 26, 2026 at 8:31 pm

    So I ended up finding this Email to DB: http://www.phpclasses.org/discuss/package/3324/

    It works exactly like what I was looking for, and I can now do what I need with the info once stored in the DB.

    There is a small bug in the package though. The ‘from’ address shows up as the ‘from’ and ‘to’ address in the DB. Here’s the code that needs to be changed in the class:

    1. if(is_array($from)){
    2.  foreach ($from as $id => $object) {
    3.    $fromname = $object->personal;
    4.    $fromaddress = $object->mailbox . "@" . $object->host;
    5.   }
    6.  }
    7.  
    8. if(is_array($to)){
    9.  foreach ($from as $id => $object) {
    10.   $toaddress = $object->mailbox . "@" . $object->host;
    11.  }
    12. }
    

    That $from on line 9 on my code above, should be changed to $to. That will fix the bug and display the correct ‘to’ address in the DB. The class is in one file, so just search for:

    if(is_array($to)){
    

    to find the code that I posted above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to set a system environment variable from a Bash script that would
i am trying to build a log system that would record how many times
I would like to create a filter that runs before the routing system does
I am in need of an authentication system that would work in harmony with
In this website I need a system that logs the user out after 10
I need to read through some gigantic log files on a Linux system. There's
I'm on a foreign linux system and need to determine the user that apache
Here is my problem: I'm developing a system that can be polled to retrieve
I´m trying to write a log system for my CakePHP intranet. What i need
I need to implement a chat system for a website, so that customers of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.