Solved

How to import email messages into MySQL

Posted on 2008-06-13
3
209 Views
Last Modified: 2012-06-27
Hello,
I'm not 100% sure this is possible but I'll throw it out there in hopes that it is.

I have reports that get sent to me weekly with various data that needs to be placed into a MySQL database. What I am interested in doing is having some type of script pull these email messages from the pop server and place the data into the MySQL database.

If anyone has any idea how to do this I'd be very thankful, as it would save me massive work of retyping all the data.

Thanks!

-Jordan
0
Comment
Question by:jordanaustin
3 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 250 total points
ID: 21782720
use cfpop

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_08.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=email_01.html#1120458

which basically retruns pop3 message as a query struct which you can loop over and do the same kind of things you do with a standard query object. (like insert to a db)

0
 
LVL 2

Author Closing Comment

by:jordanaustin
ID: 31467076
Thanks SidFishes, I had tried using cfpop for about 2 hours trying to get it to work, but the second link to the likedocs was exactly what I needed.

Thanks again!
0
 
LVL 5

Expert Comment

by:Alex-w474
ID: 21782793
You can save the files into text/csv format and load them into MySQL using LOAD DATA INFILE MySQL database command.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php convert date format 3 21
Remove Black Diamond with Question Mark from Wordpress Custom Meta 6 60
comma true 6 33
Logic behind "best rated" calculation 11 20
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question